#02081F#02081F

#02081F is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.4% C 0.051 H 264.0°. Best body text is #FFFFFF at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#02081F
RGBrgb(2, 8, 31)
HSLhsl(228, 88%, 6%)
HSVhsv(228, 94%, 12%)
CMYKcmyk(93.5%, 74.2%, 0%, 87.8%)
CIE-LABlab(2.58, 3.59, -14.05)
CIE-LCHlch(2.58, 14.51, 284.35°)
OKLaboklab(14.43% -0.0054 -0.0511)
OKLCHoklch(14.43% 0.051 264)
XYZxyz(0.3591, 0.2855, 1.3322)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02081F #1F1902
analogous
#02171F #02081F #0B021F
triadic
#02081F #1F0208 #081F02
tetradic
#02081F #1F0217 #1F1902 #021F0B
square
#02081F #1F0217 #1F1902 #021F0B
split-complementary
#02081F #1F0B02 #171F02
monochromatic
#02071D #02071D #02081F #061758 #092692

Accessibility & contrast

On white

19.86
#02081F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#02081F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02081F
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02081F#FFFFFF#000000##FFFFFF
##02081F1.0019.861.0619.86
#FFFFFF19.861.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B20
Deuteranopia (green-blind)
#00081F
Tritanopia (blue-blind)
#000E12
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #02081f;
/* rgb */ color: rgb(2, 8, 31);
/* oklch */ color: oklch(14.4% 0.051 264.0);
Tailwind
colors: {
  custom: {
    50: '#474a5a',
    500: '#02081f',
    950: '#000000',
  },
}
SCSS
$custom: #02081f;
$custom-light: #474a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#02081f",
  "rgb": {
    "r": 2,
    "g": 8,
    "b": 31
  },
  "hsl": {
    "h": 227.586,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.14434,
    "c": 0.05138,
    "h": 264
  },
  "luminance": 0.00286
}

Semantic roles & 50–950 ramp

primary
#02081F
secondary
#655518
accent
#D22AFE
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #02081F

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

Preview Lab → · Contrast checker → · Palette generator →

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