#31300F#31300F

#31300F is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.2% C 0.050 H 107.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#31300F
RGBrgb(49, 48, 15)
HSLhsl(58, 53%, 13%)
HSVhsv(58, 69%, 19%)
CMYKcmyk(0%, 2%, 69.4%, 80.8%)
CIE-LABlab(19.23, -4.97, 20.77)
CIE-LCHlch(19.23, 21.36, 103.44°)
OKLaboklab(30.2% -0.0151 0.0481)
OKLCHoklch(30.2% 0.05 107.4)
XYZxyz(2.4099, 2.8014, 0.8656)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31300F #0F1031
analogous
#311F0F #31300F #21310F
triadic
#31300F #0F3130 #300F31
tetradic
#31300F #0F311F #0F1031 #310F21
square
#31300F #0F311F #0F1031 #310F21
split-complementary
#31300F #0F2131 #1F0F31
monochromatic
#171707 #171707 #31300F #605E1D #8F8C2C

Accessibility & contrast

On white

13.46
#31300F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#31300F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31300F
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31300F#FFFFFF#000000##FFFFFF
##31300F1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E0B
Deuteranopia (green-blind)
#352F11
Tritanopia (blue-blind)
#352D29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31300f;
/* rgb */ color: rgb(49, 48, 15);
/* oklch */ color: oklch(30.2% 0.050 107.4);
Tailwind
colors: {
  custom: {
    50: '#6a684f',
    500: '#31300f',
    950: '#000000',
  },
}
SCSS
$custom: #31300f;
$custom-light: #6a684f;
$custom-dark: #000000;
JSON
{
  "hex": "#31300f",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 15
  },
  "hsl": {
    "h": 58.235,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.30199,
    "c": 0.05037,
    "h": 107.4
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#31300F
secondary
#31336B
accent
#50DD4B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #31300F

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

Preview Lab → · Contrast checker → · Palette generator →

#31300F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva