#081940#081940

#081940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.078 H 263.5°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#081940
RGBrgb(8, 25, 64)
HSLhsl(222, 78%, 14%)
HSVhsv(222, 88%, 25%)
CMYKcmyk(87.5%, 60.9%, 0%, 74.9%)
CIE-LABlab(9.93, 10.00, -26.88)
CIE-LCHlch(9.93, 28.68, 290.41°)
OKLaboklab(22.71% -0.0088 -0.0775)
OKLCHoklch(22.71% 0.078 263.5)
XYZxyz(1.3729, 1.1169, 4.9927)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081940 #402F08
analogous
#083540 #081940 #130840
triadic
#081940 #400819 #194008
tetradic
#081940 #400835 #402F08 #084013
square
#081940 #400835 #402F08 #084013
split-complementary
#081940 #401308 #354008
monochromatic
#030B1B #030B1B #081940 #0F2E76 #1643AD

Accessibility & contrast

On white

17.17
#081940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#081940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081940
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081940#FFFFFF#000000##FFFFFF
##0819401.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #081940;
/* rgb */ color: rgb(8, 25, 64);
/* oklch */ color: oklch(22.7% 0.078 263.5);
Tailwind
colors: {
  custom: {
    50: '#525575',
    500: '#081940',
    950: '#000000',
  },
}
SCSS
$custom: #081940;
$custom-light: #525575;
$custom-dark: #000000;
JSON
{
  "hex": "#081940",
  "rgb": {
    "r": 8,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 221.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22706,
    "c": 0.07796,
    "h": 263.5
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#081940
secondary
#7E6325
accent
#BA34F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081940

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

Preview Lab → · Contrast checker → · Palette generator →

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