#313A02#313A02

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

Color values

HEX#313A02
RGBrgb(49, 58, 2)
HSLhsl(70, 93%, 12%)
HSVhsv(70, 97%, 23%)
CMYKcmyk(15.5%, 0%, 96.6%, 77.3%)
CIE-LABlab(22.60, -12.11, 30.07)
CIE-LCHlch(22.60, 32.42, 111.94°)
OKLaboklab(32.86% -0.0367 0.066)
OKLCHoklch(32.86% 0.075 119.1)
XYZxyz(2.7907, 3.6835, 0.6214)
Luminance0.0368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A02 #0B023A
analogous
#3A2702 #313A02 #153A02
triadic
#313A02 #02313A #3A0231
tetradic
#313A02 #023A27 #0B023A #3A0215
square
#313A02 #023A27 #0B023A #3A0215
split-complementary
#313A02 #02153A #27023A
monochromatic
#191E01 #191E01 #313A02 #637504 #95B006

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313A02#FFFFFF#000000##FFFFFF
##313A021.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)
#3E3607
Tritanopia (blue-blind)
#353630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a02;
/* rgb */ color: rgb(49, 58, 2);
/* oklch */ color: oklch(32.9% 0.075 119.1);
Tailwind
colors: {
  custom: {
    50: '#6b7049',
    500: '#313a02',
    950: '#000000',
  },
}
SCSS
$custom: #313a02;
$custom-light: #6b7049;
$custom-dark: #000000;
JSON
{
  "hex": "#313a02",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 2
  },
  "hsl": {
    "h": 69.643,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.07548,
    "h": 119.1
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#313A02
secondary
#2A1A7D
accent
#29FF4B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A02

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

Preview Lab → · Contrast checker → · Palette generator →

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