#05311A#05311A

#05311A is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.7% C 0.063 H 155.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#05311A
RGBrgb(5, 49, 26)
HSLhsl(149, 81%, 11%)
HSVhsv(149, 90%, 19%)
CMYKcmyk(89.8%, 0%, 46.9%, 80.8%)
CIE-LABlab(17.00, -21.26, 10.61)
CIE-LCHlch(17.00, 23.76, 153.48°)
OKLaboklab(27.73% -0.0573 0.0265)
OKLCHoklch(27.73% 0.063 155.2)
XYZxyz(1.3472, 2.3033, 1.3507)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05311A #31051C
analogous
#063105 #05311A #053130
triadic
#05311A #1A0531 #311A05
tetradic
#05311A #050631 #31051C #313005
square
#05311A #050631 #31051C #313005
split-complementary
#05311A #300531 #310506
monochromatic
#031C0F #031C0F #05311A #0B6937 #10A055

Accessibility & contrast

On white

14.38
#05311A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#05311A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05311A
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05311A#FFFFFF#000000##FFFFFF
##05311A1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312C18
Deuteranopia (green-blind)
#2B281C
Tritanopia (blue-blind)
#00302B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #05311a;
/* rgb */ color: rgb(5, 49, 26);
/* oklch */ color: oklch(27.7% 0.063 155.2);
Tailwind
colors: {
  custom: {
    50: '#4d6956',
    500: '#05311a',
    950: '#000000',
  },
}
SCSS
$custom: #05311a;
$custom-light: #4d6956;
$custom-dark: #000000;
JSON
{
  "hex": "#05311a",
  "rgb": {
    "r": 5,
    "g": 49,
    "b": 26
  },
  "hsl": {
    "h": 148.636,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.27727,
    "c": 0.06312,
    "h": 155.2
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#05311A
secondary
#721F4B
accent
#3098F8
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#020603
muted
#787A78

Preview Lab

Preview with #05311A

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

Preview Lab → · Contrast checker → · Palette generator →

#05311A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva