#313002#313002

#313002 is a dark, moderate yellow. Relative luminance 0.028; OKLCH L 30.1% C 0.063 H 108.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#313002
RGBrgb(49, 48, 2)
HSLhsl(59, 92%, 10%)
HSVhsv(59, 96%, 19%)
CMYKcmyk(0%, 2%, 95.9%, 80.8%)
CIE-LABlab(19.10, -5.97, 26.22)
CIE-LCHlch(19.10, 26.89, 102.82°)
OKLaboklab(30.06% -0.0198 0.0597)
OKLCHoklch(30.06% 0.063 108.4)
XYZxyz(2.3346, 2.7713, 0.4694)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313002 #020331
analogous
#311802 #313002 #1B3102
triadic
#313002 #023130 #300231
tetradic
#313002 #023118 #020331 #31021B
square
#313002 #023118 #020331 #31021B
split-complementary
#313002 #021B31 #180231
monochromatic
#1D1D01 #1D1D01 #313002 #6C6A04 #A7A307

Accessibility & contrast

On white

13.51
#313002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#313002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313002
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313002#FFFFFF#000000##FFFFFF
##3130021.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E00
Deuteranopia (green-blind)
#362F05
Tritanopia (blue-blind)
#352C28
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #313002;
/* rgb */ color: rgb(49, 48, 2);
/* oklch */ color: oklch(30.1% 0.063 108.4);
Tailwind
colors: {
  custom: {
    50: '#6b6848',
    500: '#313002',
    950: '#000000',
  },
}
SCSS
$custom: #313002;
$custom-light: #6b6848;
$custom-dark: #000000;
JSON
{
  "hex": "#313002",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 2
  },
  "hsl": {
    "h": 58.723,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.06295,
    "h": 108.4
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#313002
secondary
#191B75
accent
#2DFF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070600
muted
#7A7A77

Preview Lab

Preview with #313002

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

Preview Lab → · Contrast checker → · Palette generator →

#313002 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva