#081042#081042

#081042 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.094 H 268.9°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#081042
RGBrgb(8, 16, 66)
HSLhsl(232, 78%, 15%)
HSVhsv(232, 88%, 26%)
CMYKcmyk(87.9%, 75.8%, 0%, 74.1%)
CIE-LABlab(7.37, 17.89, -32.48)
CIE-LCHlch(7.37, 37.08, 298.84°)
OKLaboklab(20.85% -0.0019 -0.0941)
OKLCHoklch(20.85% 0.094 268.9)
XYZxyz(1.2685, 0.8154, 5.2437)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081042 #423A08
analogous
#082D42 #081042 #1D0842
triadic
#081042 #420810 #104208
tetradic
#081042 #42082D #423A08 #08421D
square
#081042 #42082D #423A08 #08421D
split-complementary
#081042 #421D08 #2D4208
monochromatic
#03071B #03071B #081042 #0F1D79 #152AAF

Accessibility & contrast

On white

18.05
#081042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#081042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081042
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081042#FFFFFF#000000##FFFFFF
##0810421.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #081042;
/* rgb */ color: rgb(8, 16, 66);
/* oklch */ color: oklch(20.8% 0.094 268.9);
Tailwind
colors: {
  custom: {
    50: '#534e77',
    500: '#081042',
    950: '#000000',
  },
}
SCSS
$custom: #081042;
$custom-light: #534e77;
$custom-dark: #000000;
JSON
{
  "hex": "#081042",
  "rgb": {
    "r": 8,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 231.724,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20846,
    "c": 0.09414,
    "h": 268.9
  },
  "luminance": 0.00816
}

Semantic roles & 50–950 ramp

primary
#081042
secondary
#807425
accent
#DA33F5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #081042

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

Preview Lab → · Contrast checker → · Palette generator →

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