#081237#081237

#081237 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.074 H 267.6°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#081237
RGBrgb(8, 18, 55)
HSLhsl(227, 75%, 12%)
HSVhsv(227, 85%, 22%)
CMYKcmyk(85.5%, 67.3%, 0%, 78.4%)
CIE-LABlab(6.87, 11.22, -25.40)
CIE-LCHlch(6.87, 27.77, 293.83°)
OKLaboklab(20.09% -0.0031 -0.0736)
OKLCHoklch(20.09% 0.074 267.6)
XYZxyz(1.0058, 0.7600, 3.7074)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081237 #372D08
analogous
#082A37 #081237 #160837
triadic
#081237 #370812 #123708
tetradic
#081237 #37082A #372D08 #083716
square
#081237 #37082A #372D08 #083716
split-complementary
#081237 #371608 #2A3708
monochromatic
#04091B #04091B #081237 #10236C #1835A2

Accessibility & contrast

On white

18.23
#081237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#081237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081237
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081237#FFFFFF#000000##FFFFFF
##0812371.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #081237;
/* rgb */ color: rgb(8, 18, 55);
/* oklch */ color: oklch(20.1% 0.074 267.6);
Tailwind
colors: {
  custom: {
    50: '#4f4f6e',
    500: '#081237',
    950: '#000000',
  },
}
SCSS
$custom: #081237;
$custom-light: #4f4f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#081237",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 227.234,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20092,
    "c": 0.07363,
    "h": 267.6
  },
  "luminance": 0.0076
}

Semantic roles & 50–950 ramp

primary
#081237
secondary
#766525
accent
#CA37F1
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #081237

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

Preview Lab → · Contrast checker → · Palette generator →

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