#080540#080540

#080540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.6% C 0.105 H 272.2°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#080540
RGBrgb(8, 5, 64)
HSLhsl(243, 86%, 14%)
HSVhsv(243, 92%, 25%)
CMYKcmyk(87.5%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.79, 22.78, -35.27)
CIE-LCHlch(4.79, 41.99, 302.86°)
OKLaboklab(18.55% 0.0041 -0.1048)
OKLCHoklch(18.55% 0.105 272.2)
XYZxyz(1.0795, 0.5302, 4.8949)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080540 #3D4005
analogous
#051F40 #080540 #250540
triadic
#080540 #400805 #054008
tetradic
#080540 #40051F #3D4005 #054025
square
#080540 #40051F #3D4005 #054025
split-complementary
#080540 #402505 #1F4005
monochromatic
#04021C #04021C #080540 #0F0979 #160EB2

Accessibility & contrast

On white

18.99
#080540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #080540
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080540#FFFFFF#000000##FFFFFF
##0805401.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000D3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #080540;
/* rgb */ color: rgb(8, 5, 64);
/* oklch */ color: oklch(18.6% 0.105 272.2);
Tailwind
colors: {
  custom: {
    50: '#534776',
    500: '#080540',
    950: '#000000',
  },
}
SCSS
$custom: #080540;
$custom-light: #534776;
$custom-dark: #000000;
JSON
{
  "hex": "#080540",
  "rgb": {
    "r": 8,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 243.051,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18552,
    "c": 0.10493,
    "h": 272.2
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#080540
secondary
#7C8120
accent
#FC2CF1
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #080540

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

Preview Lab → · Contrast checker → · Palette generator →

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