#031F18#031F18

#031F18 is a very dark, muted teal. Relative luminance 0.011; OKLCH L 21.5% C 0.037 H 173.5°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#031F18
RGBrgb(3, 31, 24)
HSLhsl(165, 82%, 7%)
HSVhsv(165, 90%, 12%)
CMYKcmyk(90.3%, 0%, 22.6%, 87.8%)
CIE-LABlab(9.52, -12.69, 1.66)
CIE-LCHlch(9.52, 12.80, 172.53°)
OKLaboklab(21.54% -0.037 0.0042)
OKLCHoklch(21.54% 0.037 173.5)
XYZxyz(0.6923, 1.0652, 1.0331)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031F18 #1F030A
analogous
#031F0A #031F18 #03181F
triadic
#031F18 #18031F #1F1803
tetradic
#031F18 #0A031F #1F030A #181F03
square
#031F18 #0A031F #1F030A #181F03
split-complementary
#031F18 #1F0318 #1F0A03
monochromatic
#031C16 #031C16 #031F18 #085743 #0E8F6E

Accessibility & contrast

On white

17.31
#031F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#031F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031F18
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031F18#FFFFFF#000000##FFFFFF
##031F181.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1C18
Deuteranopia (green-blind)
#1A1919
Tritanopia (blue-blind)
#001F1D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031f18;
/* rgb */ color: rgb(3, 31, 24);
/* oklch */ color: oklch(21.5% 0.037 173.5);
Tailwind
colors: {
  custom: {
    50: '#475a54',
    500: '#031f18',
    950: '#000000',
  },
}
SCSS
$custom: #031f18;
$custom-light: #475a54;
$custom-dark: #000000;
JSON
{
  "hex": "#031f18",
  "rgb": {
    "r": 3,
    "g": 31,
    "b": 24
  },
  "hsl": {
    "h": 165,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.21535,
    "c": 0.0372,
    "h": 173.5
  },
  "luminance": 0.01065
}

Semantic roles & 50–950 ramp

primary
#031F18
secondary
#631B2D
accent
#2F61F9
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000402
muted
#777978

Preview Lab

Preview with #031F18

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

Preview Lab → · Contrast checker → · Palette generator →

#031F18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva