#313402#313402

#313402 is a dark, moderate yellow. Relative luminance 0.031; OKLCH L 31.2% C 0.068 H 113.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#313402
RGBrgb(49, 52, 2)
HSLhsl(64, 93%, 11%)
HSVhsv(64, 96%, 20%)
CMYKcmyk(5.8%, 0%, 96.2%, 79.6%)
CIE-LABlab(20.49, -8.48, 27.80)
CIE-LCHlch(20.49, 29.07, 106.97°)
OKLaboklab(31.17% -0.0268 0.0622)
OKLCHoklch(31.17% 0.068 113.3)
XYZxyz(2.5057, 3.1134, 0.5264)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313402 #050234
analogous
#341E02 #313402 #183402
triadic
#313402 #023134 #340231
tetradic
#313402 #02341E #050234 #340218
square
#313402 #02341E #050234 #340218
split-complementary
#313402 #021834 #1E0234
monochromatic
#1C1D01 #1C1D01 #313402 #696F04 #A0AA07

Accessibility & contrast

On white

12.94
#313402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313402 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313402
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313402#FFFFFF#000000##FFFFFF
##3134021.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393100
Deuteranopia (green-blind)
#393206
Tritanopia (blue-blind)
#35302B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313402;
/* rgb */ color: rgb(49, 52, 2);
/* oklch */ color: oklch(31.2% 0.068 113.3);
Tailwind
colors: {
  custom: {
    50: '#6b6b48',
    500: '#313402',
    950: '#000000',
  },
}
SCSS
$custom: #313402;
$custom-light: #6b6b48;
$custom-dark: #000000;
JSON
{
  "hex": "#313402",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 2
  },
  "hsl": {
    "h": 63.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.31169,
    "c": 0.06774,
    "h": 113.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#313402
secondary
#1F1A78
accent
#29FF36
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313402

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#313402 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva