#313A03#313A03

#313A03 is a dark, moderate yellow. Relative luminance 0.037; OKLCH L 32.9% C 0.075 H 119.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#313A03
RGBrgb(49, 58, 3)
HSLhsl(70, 90%, 12%)
HSVhsv(70, 95%, 23%)
CMYKcmyk(15.5%, 0%, 94.8%, 77.3%)
CIE-LABlab(22.60, -12.04, 29.67)
CIE-LCHlch(22.60, 32.02, 112.09°)
OKLaboklab(32.87% -0.0364 0.0652)
OKLCHoklch(32.87% 0.075 119.2)
XYZxyz(2.7962, 3.6857, 0.6502)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A03 #0C033A
analogous
#3A2803 #313A03 #163A03
triadic
#313A03 #03313A #3A0331
tetradic
#313A03 #033A28 #0C033A #3A0316
square
#313A03 #033A28 #0C033A #3A0316
split-complementary
#313A03 #03163A #28033A
monochromatic
#191D02 #191D02 #313A03 #627406 #93AE09

Accessibility & contrast

On white

12.09
#313A03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313A03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A03
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A03#FFFFFF#000000##FFFFFF
##313A031.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3600
Deuteranopia (green-blind)
#3E3608
Tritanopia (blue-blind)
#353630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a03;
/* rgb */ color: rgb(49, 58, 3);
/* oklch */ color: oklch(32.9% 0.075 119.2);
Tailwind
colors: {
  custom: {
    50: '#6b7049',
    500: '#313a03',
    950: '#000000',
  },
}
SCSS
$custom: #313a03;
$custom-light: #6b7049;
$custom-dark: #000000;
JSON
{
  "hex": "#313a03",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 3
  },
  "hsl": {
    "h": 69.818,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.32869,
    "c": 0.07466,
    "h": 119.2
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#313A03
secondary
#2C1C7D
accent
#29FF4C
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A03

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

Preview Lab → · Contrast checker → · Palette generator →

#313A03 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva