#081A40#081A40

#081A40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.0% C 0.076 H 262.7°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#081A40
RGBrgb(8, 26, 64)
HSLhsl(221, 78%, 14%)
HSVhsv(221, 88%, 25%)
CMYKcmyk(87.5%, 59.4%, 0%, 74.9%)
CIE-LABlab(10.26, 9.21, -26.34)
CIE-LCHlch(10.26, 27.90, 289.27°)
OKLaboklab(22.96% -0.0097 -0.0759)
OKLCHoklch(22.96% 0.076 262.7)
XYZxyz(1.3946, 1.1604, 5.0000)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081A40 #402E08
analogous
#083640 #081A40 #120840
triadic
#081A40 #40081A #1A4008
tetradic
#081A40 #400836 #402E08 #084012
square
#081A40 #400836 #402E08 #084012
split-complementary
#081A40 #401208 #364008
monochromatic
#030B1B #030B1B #081A40 #0F3076 #1646AD

Accessibility & contrast

On white

17.04
#081A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#081A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081A40
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081A40#FFFFFF#000000##FFFFFF
##081A401.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #081a40;
/* rgb */ color: rgb(8, 26, 64);
/* oklch */ color: oklch(23.0% 0.076 262.7);
Tailwind
colors: {
  custom: {
    50: '#525575',
    500: '#081a40',
    950: '#000000',
  },
}
SCSS
$custom: #081a40;
$custom-light: #525575;
$custom-dark: #000000;
JSON
{
  "hex": "#081a40",
  "rgb": {
    "r": 8,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 220.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22958,
    "c": 0.07648,
    "h": 262.7
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#081A40
secondary
#7E6225
accent
#B634F4
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #081A40

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

Preview Lab → · Contrast checker → · Palette generator →

#081A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva