#312F03#312F03

#312F03 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.8% C 0.061 H 106.9°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#312F03
RGBrgb(49, 47, 3)
HSLhsl(57, 88%, 10%)
HSVhsv(57, 94%, 19%)
CMYKcmyk(0%, 4.1%, 93.9%, 80.8%)
CIE-LABlab(18.77, -5.25, 25.43)
CIE-LCHlch(18.77, 25.96, 101.66°)
OKLaboklab(29.79% -0.0177 0.0582)
OKLCHoklch(29.79% 0.061 106.9)
XYZxyz(2.2997, 2.6927, 0.4847)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F03 #030531
analogous
#311803 #312F03 #1C3103
triadic
#312F03 #03312F #2F0331
tetradic
#312F03 #033118 #030531 #31031C
square
#312F03 #033118 #030531 #31031C
split-complementary
#312F03 #031C31 #180331
monochromatic
#1D1C02 #1D1C02 #312F03 #6B6607 #A49E0A

Accessibility & contrast

On white

13.65
#312F03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#312F03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F03
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F03#FFFFFF#000000##FFFFFF
##312F031.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#352E06
Tritanopia (blue-blind)
#352B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f03;
/* rgb */ color: rgb(49, 47, 3);
/* oklch */ color: oklch(29.8% 0.061 106.9);
Tailwind
colors: {
  custom: {
    50: '#6b6748',
    500: '#312f03',
    950: '#000000',
  },
}
SCSS
$custom: #312f03;
$custom-light: #6b6748;
$custom-dark: #000000;
JSON
{
  "hex": "#312f03",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 3
  },
  "hsl": {
    "h": 57.391,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.29793,
    "c": 0.06081,
    "h": 106.9
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#312F03
secondary
#1B1F74
accent
#32FF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070601
muted
#7A7A77

Preview Lab

Preview with #312F03

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

Preview Lab → · Contrast checker → · Palette generator →

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