#080542#080542

#080542 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.108 H 271.9°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#080542
RGBrgb(8, 5, 66)
HSLhsl(243, 86%, 14%)
HSVhsv(243, 92%, 26%)
CMYKcmyk(87.9%, 92.4%, 0%, 74.1%)
CIE-LABlab(5.00, 23.85, -36.36)
CIE-LCHlch(5.00, 43.48, 303.27°)
OKLaboklab(18.84% 0.0035 -0.1076)
OKLCHoklch(18.84% 0.108 271.9)
XYZxyz(1.1374, 0.5534, 5.2001)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080542 #3F4205
analogous
#052142 #080542 #270542
triadic
#080542 #420805 #054208
tetradic
#080542 #420521 #3F4205 #054227
square
#080542 #420521 #3F4205 #054227
split-complementary
#080542 #422705 #214205
monochromatic
#03021C #03021C #080542 #0F097B #160EB4

Accessibility & contrast

On white

18.91
#080542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#080542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080542
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080542#FFFFFF#000000##FFFFFF
##0805421.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001444
Deuteranopia (green-blind)
#000E41
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #080542;
/* rgb */ color: rgb(8, 5, 66);
/* oklch */ color: oklch(18.8% 0.108 271.9);
Tailwind
colors: {
  custom: {
    50: '#544777',
    500: '#080542',
    950: '#000000',
  },
}
SCSS
$custom: #080542;
$custom-light: #544777;
$custom-dark: #000000;
JSON
{
  "hex": "#080542",
  "rgb": {
    "r": 8,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 242.951,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.18836,
    "c": 0.10765,
    "h": 271.9
  },
  "luminance": 0.00554
}

Semantic roles & 50–950 ramp

primary
#080542
secondary
#7E8220
accent
#FC2CF2
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #080542

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

Preview Lab → · Contrast checker → · Palette generator →

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