#313004#313004

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

Color values

HEX#313004
RGBrgb(49, 48, 4)
HSLhsl(59, 85%, 10%)
HSVhsv(59, 92%, 19%)
CMYKcmyk(0%, 2%, 91.8%, 80.8%)
CIE-LABlab(19.12, -5.82, 25.43)
CIE-LCHlch(19.12, 26.09, 102.89°)
OKLaboklab(30.08% -0.0191 0.0579)
OKLCHoklch(30.08% 0.061 108.2)
XYZxyz(2.3456, 2.7757, 0.5271)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313004 #040531
analogous
#311904 #313004 #1B3104
triadic
#313004 #043130 #300431
tetradic
#313004 #043119 #040531 #31041B
square
#313004 #043119 #040531 #31041B
split-complementary
#313004 #041B31 #190431
monochromatic
#1C1C02 #1C1C02 #313004 #6A6709 #A29F0D

Accessibility & contrast

On white

13.50
#313004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#313004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313004
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313004#FFFFFF#000000##FFFFFF
##3130041.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313004;
/* rgb */ color: rgb(49, 48, 4);
/* oklch */ color: oklch(30.1% 0.061 108.2);
Tailwind
colors: {
  custom: {
    50: '#6b6849',
    500: '#313004',
    950: '#000000',
  },
}
SCSS
$custom: #313004;
$custom-light: #6b6849;
$custom-dark: #000000;
JSON
{
  "hex": "#313004",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 4
  },
  "hsl": {
    "h": 58.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.30079,
    "c": 0.06098,
    "h": 108.2
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#313004
secondary
#1D1F73
accent
#31FB2D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #313004

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

Preview Lab → · Contrast checker → · Palette generator →

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