#05310B#05310B

#05310B is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.4% C 0.079 H 145.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#05310B
RGBrgb(5, 49, 11)
HSLhsl(128, 81%, 11%)
HSVhsv(128, 90%, 19%)
CMYKcmyk(89.8%, 0%, 77.6%, 80.8%)
CIE-LABlab(16.76, -24.11, 19.07)
CIE-LCHlch(16.76, 30.74, 141.65°)
OKLaboklab(27.45% -0.065 0.0454)
OKLCHoklch(27.45% 0.079 145.1)
XYZxyz(1.2212, 2.2529, 0.6870)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05310B #31052B
analogous
#153105 #05310B #053121
triadic
#05310B #0B0531 #310B05
tetradic
#05310B #051531 #31052B #312105
square
#05310B #051531 #31052B #312105
split-complementary
#05310B #210531 #310515
monochromatic
#031C06 #031C06 #05310B #0B6917 #10A024

Accessibility & contrast

On white

14.48
#05310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#05310B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05310B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05310B#FFFFFF#000000##FFFFFF
##05310B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B07
Deuteranopia (green-blind)
#2D280E
Tritanopia (blue-blind)
#002F29
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #05310b;
/* rgb */ color: rgb(5, 49, 11);
/* oklch */ color: oklch(27.4% 0.079 145.1);
Tailwind
colors: {
  custom: {
    50: '#4d6a4c',
    500: '#05310b',
    950: '#000000',
  },
}
SCSS
$custom: #05310b;
$custom-light: #4d6a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#05310b",
  "rgb": {
    "r": 5,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 128.182,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.27447,
    "c": 0.07931,
    "h": 145.1
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#05310B
secondary
#721F67
accent
#30DDF8
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #05310B

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

Preview Lab → · Contrast checker → · Palette generator →

#05310B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva