Skip to content

#302c01

a deep, electric yellow · warm · closest name: Black

RGB
48, 44, 1
HSL
55°, 96%, 10%
CMYK
0, 8, 98, 81
Luminance
0.0243

At a glance

Every number on this page in one read: what #302c01 is made of, how bright it looks, and which way it leans.

Hex
#302c01
Hue
55°
yellow
Saturation
96%
electric
Lightness
10%
deep
Brightness
19%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0243
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
14.13:1
Closest name
Black
ΔE2000 19.5
Where it sits
Hue55° of 360°
Saturation96%
Lightness10%
Temperature
Warm ← → Cool21% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#302c01
RGBrgb(48, 44, 1)
HSLhsl(55, 96%, 10%)
CMYKcmyk(0%, 8%, 98%, 81%)
LABlab(17.6 -4.0 24.8)
LCHlch(17.6 25.2 99.1)
OKLCHoklch(0.288 0.060 104.0)
Decimal3156993
Display P3color(display-p3 0.188 0.173 0.004)

Copy-ready code

/* CSS */
color: #302c01;
background-color: #302c01;
/* Tailwind (arbitrary) */
class="text-[#302c01] bg-[#302c01]"
/* SCSS */
$brand: #302c01;
/* SwiftUI */
Color(red: 0.188, green: 0.173, blue: 0.004)
/* Android */
Color.parseColor("#302c01")
/* Flutter */
Color(0xFF302C01)
/* Python / OpenCV (BGR) */
(1, 44, 48)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #302c01 · 14.13:1
Use #ffffffAAA at every size.
Aa
White text · 14.13:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.49:1
AA fail · AA large fail · AAA fail
Reading the other direction: #302c01 as text scores 14.13:1 on white and 1.49:1 on black.

Accessibility — WCAG contrast

Aa
#302c01 on white: 14.13:1
AA ✓ pass · AA-large · AAA
Aa
#302c01 on black: 1.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #312A00
deuteranopia · #322C03
tritanopia · #352824

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #302c01 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFCF1
#FCFAE4
#FAF5C1
#FDF491
#FCEE5A
#FAE823
#F0DC05
#C8B704
#A09303
#736A07
#302c01
Base = 950Lightest = 50 · #FDFCF1Darkest = 950 · #302c01
:root {
  --brand-50: #FDFCF1;
  --brand-100: #FCFAE4;
  --brand-200: #FAF5C1;
  --brand-300: #FDF491;
  --brand-400: #FCEE5A;
  --brand-500: #FAE823;
  --brand-600: #F0DC05;
  --brand-700: #C8B704;
  --brand-800: #A09303;
  --brand-900: #736A07;
  --brand-950: #302c01;
  --brand: #302c01;
  --brand-ink: #ffffff;
}

Colors that work with #302c01

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAFAF4
Tinted page background
Border#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#001031
Second voice, not a rival
Dark variant#7D7203
Hover, pressed, headers
Light variant#FEFCE6
Selected rows, tints
Dark surface#242314
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #302c01

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#010530
Analogous left#301401
Analogous right#1C3001
Split-complement 1#011C30
Split-complement 2#140130
Triadic 1#01302C
Triadic 2#2C0130
Tetradic#013014

RGB percentages

Red18.8%
Green17.3%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta8.3%
Yellow97.9%
Key (black)81.2%

Color previews

#302c01 text on a black background

contrast 1.49:1

Card sample

#302c01 text on a white background

contrast 14.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #302c01;
Background color
Panel with #302c01 background
background-color: #302c01;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #302c01;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(48, 44, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 44, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #302c01;
background: linear-gradient(135deg, #302c01, #153001);

Monochromatic scale

Palettes built from #302c01

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#302c01 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#302c01, answered

What color is #302c01?

#302c01 is a deep electric yellow, closest to Black (ΔE2000 19.5). It sits at 55° on the hue wheel with 96% saturation and 10% lightness, which reads as warm.

What is the RGB value of #302c01?

rgb(48, 44, 1) — 48 red, 44 green and 1 blue out of 255, or 18.8% / 17.3% / 0.4% by channel.

Is #302c01 a light or a dark color?

It is a dark color. Relative luminance is 0.0243 and perceived brightness is 17%, so white text on it reaches 14.13:1.

Should I use black or white text on #302c01?

White. It scores 14.13:1 against #302c01, versus 1.49:1 for black — AAA at any size.

What is the complementary color of #302c01?

#010530 sits directly opposite on the wheel. Softer options are the split-complements #011C30 and #140130, which give the same contrast with far less vibration.

What colors go well with #302c01?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #001031 as an accent and #7D7203 for hover and pressed states. For a palette, the analogous pair #301401 and #1C3001 stays calm, while #010530 is the loudest partner.

What is #302c01 in CMYK for printing?

cmyk(0%, 8%, 98%, 81%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #302c01 warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #301B01; nudged cooler, #233001.

Work with #302c01 in the Color Lab