#05310F#05310F

#05310F is a dark, moderate green. Relative luminance 0.023; OKLCH L 27.5% C 0.075 H 147.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#05310F
RGBrgb(5, 49, 15)
HSLhsl(134, 81%, 11%)
HSVhsv(134, 90%, 19%)
CMYKcmyk(89.8%, 0%, 69.4%, 80.8%)
CIE-LABlab(16.81, -23.50, 17.21)
CIE-LCHlch(16.81, 29.13, 143.78°)
OKLaboklab(27.51% -0.0632 0.0411)
OKLCHoklch(27.51% 0.075 147)
XYZxyz(1.2470, 2.2632, 0.8230)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05310F #310527
analogous
#113105 #05310F #053125
triadic
#05310F #0F0531 #310F05
tetradic
#05310F #051131 #310527 #312505
square
#05310F #051131 #310527 #312505
split-complementary
#05310F #250531 #310511
monochromatic
#031C08 #031C08 #05310F #0B6920 #10A031

Accessibility & contrast

On white

14.46
#05310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05310F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05310F#FFFFFF#000000##FFFFFF
##05310F1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C0C
Deuteranopia (green-blind)
#2D2812
Tritanopia (blue-blind)
#00302A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #05310f;
/* rgb */ color: rgb(5, 49, 15);
/* oklch */ color: oklch(27.5% 0.075 147.0);
Tailwind
colors: {
  custom: {
    50: '#4d6a4e',
    500: '#05310f',
    950: '#000000',
  },
}
SCSS
$custom: #05310f;
$custom-light: #4d6a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#05310f",
  "rgb": {
    "r": 5,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 133.636,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.27505,
    "c": 0.07542,
    "h": 147
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#05310F
secondary
#721F60
accent
#30CAF8
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #05310F

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

Preview Lab → · Contrast checker → · Palette generator →

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