#081340#081340

#081340 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.087 H 267.5°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#081340
RGBrgb(8, 19, 64)
HSLhsl(228, 78%, 14%)
HSVhsv(228, 88%, 25%)
CMYKcmyk(87.5%, 70.3%, 0%, 74.9%)
CIE-LABlab(8.02, 14.76, -30.00)
CIE-LCHlch(8.02, 33.43, 296.20°)
OKLaboklab(21.27% -0.0038 -0.0867)
OKLCHoklch(21.27% 0.087 267.5)
XYZxyz(1.2581, 0.8874, 4.9545)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081340 #403508
analogous
#082F40 #081340 #190840
triadic
#081340 #400813 #134008
tetradic
#081340 #40082F #403508 #084019
square
#081340 #40082F #403508 #084019
split-complementary
#081340 #401908 #2F4008
monochromatic
#03081B #03081B #081340 #0F2376 #1633AD

Accessibility & contrast

On white

17.83
#081340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#081340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081340
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081340#FFFFFF#000000##FFFFFF
##0813401.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #081340;
/* rgb */ color: rgb(8, 19, 64);
/* oklch */ color: oklch(21.3% 0.087 267.5);
Tailwind
colors: {
  custom: {
    50: '#525075',
    500: '#081340',
    950: '#000000',
  },
}
SCSS
$custom: #081340;
$custom-light: #525075;
$custom-dark: #000000;
JSON
{
  "hex": "#081340",
  "rgb": {
    "r": 8,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 228.214,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21271,
    "c": 0.08681,
    "h": 267.5
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#081340
secondary
#7E6D25
accent
#CE34F4
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081340

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

Preview Lab → · Contrast checker → · Palette generator →

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