#312902#312902

#312902 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 28.2% C 0.056 H 97.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#312902
RGBrgb(49, 41, 2)
HSLhsl(50, 92%, 10%)
HSVhsv(50, 96%, 19%)
CMYKcmyk(0%, 16.3%, 95.9%, 80.8%)
CIE-LABlab(16.72, -1.37, 23.36)
CIE-LCHlch(16.72, 23.40, 93.36°)
OKLaboklab(28.16% -0.007 0.0555)
OKLCHoklch(28.16% 0.056 97.2)
XYZxyz(2.0706, 2.2433, 0.3814)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312902 #020A31
analogous
#311102 #312902 #223102
triadic
#312902 #023129 #290231
tetradic
#312902 #023111 #020A31 #310222
square
#312902 #023111 #020A31 #310222
split-complementary
#312902 #022231 #110231
monochromatic
#1D1901 #1D1901 #312902 #6C5A04 #A78B07

Accessibility & contrast

On white

14.50
#312902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#312902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312902
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312902#FFFFFF#000000##FFFFFF
##3129021.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2800
Deuteranopia (green-blind)
#312A04
Tritanopia (blue-blind)
#362522
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312902;
/* rgb */ color: rgb(49, 41, 2);
/* oklch */ color: oklch(28.2% 0.056 97.2);
Tailwind
colors: {
  custom: {
    50: '#6b6248',
    500: '#312902',
    950: '#000000',
  },
}
SCSS
$custom: #312902;
$custom-light: #6b6248;
$custom-dark: #000000;
JSON
{
  "hex": "#312902",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 49.787,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.28158,
    "c": 0.05589,
    "h": 97.2
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#312902
secondary
#192975
accent
#4DFF29
background
#F6F5F4
surface
#EBEAE6
border
#C6C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312902

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

Preview Lab → · Contrast checker → · Palette generator →

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