#312C02#312C02

#312C02 is a dark, muted yellow. Relative luminance 0.025; OKLCH L 29.0% C 0.059 H 102.4°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#312C02
RGBrgb(49, 44, 2)
HSLhsl(54, 92%, 10%)
HSVhsv(54, 96%, 19%)
CMYKcmyk(0%, 10.2%, 95.9%, 80.8%)
CIE-LABlab(17.73, -3.37, 24.60)
CIE-LCHlch(17.73, 24.83, 97.79°)
OKLaboklab(28.96% -0.0126 0.0573)
OKLCHoklch(28.96% 0.059 102.4)
XYZxyz(2.1784, 2.4588, 0.4173)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C02 #020731
analogous
#311402 #312C02 #1F3102
triadic
#312C02 #02312C #2C0231
tetradic
#312C02 #023114 #020731 #31021F
square
#312C02 #023114 #020731 #31021F
split-complementary
#312C02 #021F31 #140231
monochromatic
#1D1A01 #1D1A01 #312C02 #6C6104 #A79607

Accessibility & contrast

On white

14.08
#312C02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#312C02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C02
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C02#FFFFFF#000000##FFFFFF
##312C021.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#332C04
Tritanopia (blue-blind)
#362824
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312c02;
/* rgb */ color: rgb(49, 44, 2);
/* oklch */ color: oklch(29.0% 0.059 102.4);
Tailwind
colors: {
  custom: {
    50: '#6b6448',
    500: '#312c02',
    950: '#000000',
  },
}
SCSS
$custom: #312c02;
$custom-light: #6b6448;
$custom-dark: #000000;
JSON
{
  "hex": "#312c02",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 2
  },
  "hsl": {
    "h": 53.617,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.28964,
    "c": 0.05865,
    "h": 102.4
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#312C02
secondary
#192375
accent
#40FF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070500
muted
#7A7A77

Preview Lab

Preview with #312C02

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

Preview Lab → · Contrast checker → · Palette generator →

#312C02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva