#08121F#08121F

#08121F is a very dark, muted cyan. Relative luminance 0.006; OKLCH L 18.0% C 0.031 H 255.2°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#08121F
RGBrgb(8, 18, 31)
HSLhsl(214, 59%, 8%)
HSVhsv(214, 74%, 12%)
CMYKcmyk(74.2%, 41.9%, 0%, 87.8%)
CIE-LABlab(5.27, 0.39, -9.95)
CIE-LCHlch(5.27, 9.96, 272.24°)
OKLaboklab(18% -0.0079 -0.0299)
OKLCHoklch(18% 0.031 255.2)
XYZxyz(0.5637, 0.5831, 1.3789)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08121F #1F1508
analogous
#081D1F #08121F #09081F
triadic
#08121F #1F0812 #121F08
tetradic
#08121F #1F081D #1F1508 #081F09
square
#08121F #1F081D #1F1508 #081F09
split-complementary
#08121F #1F0908 #1D1F08
monochromatic
#060E18 #060E18 #08121F #152E50 #214A80

Accessibility & contrast

On white

18.81
#08121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#08121F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08121F
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08121F#FFFFFF#000000##FFFFFF
##08121F1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1320
Deuteranopia (green-blind)
#0A111F
Tritanopia (blue-blind)
#001517
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #08121f;
/* rgb */ color: rgb(8, 18, 31);
/* oklch */ color: oklch(18.0% 0.031 255.2);
Tailwind
colors: {
  custom: {
    50: '#4a505a',
    500: '#08121f',
    950: '#000000',
  },
}
SCSS
$custom: #08121f;
$custom-light: #4a505a;
$custom-dark: #000000;
JSON
{
  "hex": "#08121f",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 213.913,
    "s": 58.974,
    "l": 7.647
  },
  "oklch": {
    "l": 0.18001,
    "c": 0.03093,
    "h": 255.2
  },
  "luminance": 0.00583
}

Semantic roles & 50–950 ramp

primary
#08121F
secondary
#5C4526
accent
#9E46E2
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010203
muted
#777878

Preview Lab

Preview with #08121F

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

Preview Lab → · Contrast checker → · Palette generator →

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