#081239#081239

#081239 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.077 H 267.7°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#081239
RGBrgb(8, 18, 57)
HSLhsl(228, 75%, 13%)
HSVhsv(228, 86%, 22%)
CMYKcmyk(86%, 68.4%, 0%, 77.6%)
CIE-LABlab(7.04, 12.21, -26.57)
CIE-LCHlch(7.04, 29.24, 294.68°)
OKLaboklab(20.3% -0.003 -0.0769)
OKLCHoklch(20.3% 0.077 267.7)
XYZxyz(1.0547, 0.7795, 3.9650)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081239 #392F08
analogous
#082A39 #081239 #160839
triadic
#081239 #390812 #123908
tetradic
#081239 #39082A #392F08 #083916
square
#081239 #39082A #392F08 #083916
split-complementary
#081239 #391608 #2A3908
monochromatic
#04081B #04081B #081239 #10236F #1734A4

Accessibility & contrast

On white

18.17
#081239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#081239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081239
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081239#FFFFFF#000000##FFFFFF
##0812391.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #081239;
/* rgb */ color: rgb(8, 18, 57);
/* oklch */ color: oklch(20.3% 0.077 267.7);
Tailwind
colors: {
  custom: {
    50: '#504f70',
    500: '#081239',
    950: '#000000',
  },
}
SCSS
$custom: #081239;
$custom-light: #504f70;
$custom-dark: #000000;
JSON
{
  "hex": "#081239",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 227.755,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20298,
    "c": 0.07695,
    "h": 267.7
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#081239
secondary
#786725
accent
#CC36F2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #081239

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

Preview Lab → · Contrast checker → · Palette generator →

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