#081F40#081F40

#081F40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.3% C 0.069 H 257.9°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#081F40
RGBrgb(8, 31, 64)
HSLhsl(215, 78%, 14%)
HSVhsv(215, 88%, 25%)
CMYKcmyk(87.5%, 51.6%, 0%, 74.9%)
CIE-LABlab(11.97, 5.29, -23.59)
CIE-LCHlch(11.97, 24.18, 282.63°)
OKLaboklab(24.27% -0.0145 -0.0676)
OKLCHoklch(24.27% 0.069 257.9)
XYZxyz(1.5152, 1.4016, 5.0402)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081F40 #402908
analogous
#083B40 #081F40 #0D0840
triadic
#081F40 #40081F #1F4008
tetradic
#081F40 #40083B #402908 #08400D
square
#081F40 #40083B #402908 #08400D
split-complementary
#081F40 #400D08 #3B4008
monochromatic
#030D1B #030D1B #081F40 #0F3976 #1654AD

Accessibility & contrast

On white

16.40
#081F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#081F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081F40
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081F40#FFFFFF#000000##FFFFFF
##081F401.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #081f40;
/* rgb */ color: rgb(8, 31, 64);
/* oklch */ color: oklch(24.3% 0.069 257.9);
Tailwind
colors: {
  custom: {
    50: '#515a75',
    500: '#081f40',
    950: '#000000',
  },
}
SCSS
$custom: #081f40;
$custom-light: #515a75;
$custom-dark: #000000;
JSON
{
  "hex": "#081f40",
  "rgb": {
    "r": 8,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 215.357,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24266,
    "c": 0.06919,
    "h": 257.9
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#081F40
secondary
#7E5A25
accent
#A534F4
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #081F40

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

Preview Lab → · Contrast checker → · Palette generator →

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