#081540#081540

#081540 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.084 H 266.3°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#081540
RGBrgb(8, 21, 64)
HSLhsl(226, 78%, 14%)
HSVhsv(226, 88%, 25%)
CMYKcmyk(87.5%, 67.2%, 0%, 74.9%)
CIE-LABlab(8.64, 13.18, -28.98)
CIE-LCHlch(8.64, 31.84, 294.45°)
OKLaboklab(21.73% -0.0054 -0.0837)
OKLCHoklch(21.73% 0.084 266.3)
XYZxyz(1.2934, 0.9580, 4.9662)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081540 #403308
analogous
#083140 #081540 #170840
triadic
#081540 #400815 #154008
tetradic
#081540 #400831 #403308 #084017
square
#081540 #400831 #403308 #084017
split-complementary
#081540 #401708 #314008
monochromatic
#03091B #03091B #081540 #0F2776 #1639AD

Accessibility & contrast

On white

17.62
#081540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#081540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081540
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081540#FFFFFF#000000##FFFFFF
##0815401.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #081540;
/* rgb */ color: rgb(8, 21, 64);
/* oklch */ color: oklch(21.7% 0.084 266.3);
Tailwind
colors: {
  custom: {
    50: '#525175',
    500: '#081540',
    950: '#000000',
  },
}
SCSS
$custom: #081540;
$custom-light: #525175;
$custom-dark: #000000;
JSON
{
  "hex": "#081540",
  "rgb": {
    "r": 8,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 226.071,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21733,
    "c": 0.08389,
    "h": 266.3
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#081540
secondary
#7E6A25
accent
#C834F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081540

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

Preview Lab → · Contrast checker → · Palette generator →

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