#312F02#312F02

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

Color values

HEX#312F02
RGBrgb(49, 47, 2)
HSLhsl(57, 92%, 10%)
HSVhsv(57, 96%, 19%)
CMYKcmyk(0%, 4.1%, 95.9%, 80.8%)
CIE-LABlab(18.76, -5.32, 25.82)
CIE-LCHlch(18.76, 26.37, 101.65°)
OKLaboklab(29.78% -0.018 0.0591)
OKLCHoklch(29.78% 0.062 107)
XYZxyz(2.2942, 2.6905, 0.4559)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F02 #020431
analogous
#311802 #312F02 #1B3102
triadic
#312F02 #02312F #2F0231
tetradic
#312F02 #023118 #020431 #31021B
square
#312F02 #023118 #020431 #31021B
split-complementary
#312F02 #021B31 #180231
monochromatic
#1D1C01 #1D1C01 #312F02 #6C6704 #A7A007

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312F02#FFFFFF#000000##FFFFFF
##312F021.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)
#352E05
Tritanopia (blue-blind)
#362B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312f02;
/* rgb */ color: rgb(49, 47, 2);
/* oklch */ color: oklch(29.8% 0.062 107.0);
Tailwind
colors: {
  custom: {
    50: '#6b6748',
    500: '#312f02',
    950: '#000000',
  },
}
SCSS
$custom: #312f02;
$custom-light: #6b6748;
$custom-dark: #000000;
JSON
{
  "hex": "#312f02",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 57.447,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.29783,
    "c": 0.06181,
    "h": 107
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#312F02
secondary
#191D75
accent
#32FF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070600
muted
#7A7A77

Preview Lab

Preview with #312F02

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

Preview Lab → · Contrast checker → · Palette generator →

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