#081F42#081F42

#081F42 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.072 H 258.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#081F42
RGBrgb(8, 31, 66)
HSLhsl(216, 78%, 15%)
HSVhsv(216, 88%, 26%)
CMYKcmyk(87.9%, 53%, 0%, 74.1%)
CIE-LABlab(12.12, 6.21, -24.75)
CIE-LCHlch(12.12, 25.51, 284.08°)
OKLaboklab(24.43% -0.0141 -0.071)
OKLCHoklch(24.43% 0.072 258.8)
XYZxyz(1.5731, 1.4248, 5.3453)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081F42 #422B08
analogous
#083C42 #081F42 #0E0842
triadic
#081F42 #42081F #1F4208
tetradic
#081F42 #42083C #422B08 #08420E
square
#081F42 #42083C #422B08 #08420E
split-complementary
#081F42 #420E08 #3C4208
monochromatic
#030D1B #030D1B #081F42 #0F3979 #1552AF

Accessibility & contrast

On white

16.34
#081F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#081F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081F42
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081F42#FFFFFF#000000##FFFFFF
##081F421.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2343
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #081f42;
/* rgb */ color: rgb(8, 31, 66);
/* oklch */ color: oklch(24.4% 0.072 258.8);
Tailwind
colors: {
  custom: {
    50: '#525a77',
    500: '#081f42',
    950: '#000000',
  },
}
SCSS
$custom: #081f42;
$custom-light: #525a77;
$custom-dark: #000000;
JSON
{
  "hex": "#081f42",
  "rgb": {
    "r": 8,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 216.207,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24434,
    "c": 0.07243,
    "h": 258.8
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#081F42
secondary
#805C25
accent
#A833F5
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #081F42

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

Preview Lab → · Contrast checker → · Palette generator →

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