#081542#081542

#081542 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.087 H 266.5°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#081542
RGBrgb(8, 21, 66)
HSLhsl(227, 78%, 15%)
HSVhsv(227, 88%, 26%)
CMYKcmyk(87.9%, 68.2%, 0%, 74.1%)
CIE-LABlab(8.83, 14.09, -30.08)
CIE-LCHlch(8.83, 33.21, 295.10°)
OKLaboklab(21.94% -0.0053 -0.0869)
OKLCHoklch(21.94% 0.087 266.5)
XYZxyz(1.3513, 0.9811, 5.2714)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081542 #423508
analogous
#083242 #081542 #180842
triadic
#081542 #420815 #154208
tetradic
#081542 #420832 #423508 #084218
square
#081542 #420832 #423508 #084218
split-complementary
#081542 #421808 #324208
monochromatic
#03091B #03091B #081542 #0F2679 #1538AF

Accessibility & contrast

On white

17.56
#081542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#081542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081542
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081542#FFFFFF#000000##FFFFFF
##0815421.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#002129
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #081542;
/* rgb */ color: rgb(8, 21, 66);
/* oklch */ color: oklch(21.9% 0.087 266.5);
Tailwind
colors: {
  custom: {
    50: '#535177',
    500: '#081542',
    950: '#000000',
  },
}
SCSS
$custom: #081542;
$custom-light: #535177;
$custom-dark: #000000;
JSON
{
  "hex": "#081542",
  "rgb": {
    "r": 8,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 226.552,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21941,
    "c": 0.0871,
    "h": 266.5
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#081542
secondary
#806C25
accent
#C933F5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081542

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

Preview Lab → · Contrast checker → · Palette generator →

#081542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva