#081040#081040

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

Color values

HEX#081040
RGBrgb(8, 16, 64)
HSLhsl(231, 78%, 14%)
HSVhsv(231, 88%, 25%)
CMYKcmyk(87.5%, 75%, 0%, 74.9%)
CIE-LABlab(7.16, 16.95, -31.40)
CIE-LCHlch(7.16, 35.69, 298.37°)
OKLaboklab(20.62% -0.0017 -0.091)
OKLCHoklch(20.62% 0.091 268.9)
XYZxyz(1.2105, 0.7922, 4.9386)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081040 #403808
analogous
#082C40 #081040 #1C0840
triadic
#081040 #400810 #104008
tetradic
#081040 #40082C #403808 #08401C
square
#081040 #40082C #403808 #08401C
split-complementary
#081040 #401C08 #2C4008
monochromatic
#03071B #03071B #081040 #0F1E76 #162BAD

Accessibility & contrast

On white

18.13
#081040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #081040
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081040#FFFFFF#000000##FFFFFF
##0810401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #081040;
/* rgb */ color: rgb(8, 16, 64);
/* oklch */ color: oklch(20.6% 0.091 268.9);
Tailwind
colors: {
  custom: {
    50: '#534e75',
    500: '#081040',
    950: '#000000',
  },
}
SCSS
$custom: #081040;
$custom-light: #534e75;
$custom-dark: #000000;
JSON
{
  "hex": "#081040",
  "rgb": {
    "r": 8,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 231.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20615,
    "c": 0.09105,
    "h": 268.9
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#081040
secondary
#7E7225
accent
#D934F4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #081040

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

Preview Lab → · Contrast checker → · Palette generator →

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