#081236#081236

#081236 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.0% C 0.072 H 267.5°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#081236
RGBrgb(8, 18, 54)
HSLhsl(227, 74%, 12%)
HSVhsv(227, 85%, 21%)
CMYKcmyk(85.2%, 66.7%, 0%, 78.8%)
CIE-LABlab(6.78, 10.72, -24.81)
CIE-LCHlch(6.78, 27.03, 293.36°)
OKLaboklab(19.99% -0.0032 -0.0719)
OKLCHoklch(19.99% 0.072 267.5)
XYZxyz(0.9821, 0.7505, 3.5824)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081236 #362C08
analogous
#082936 #081236 #150836
triadic
#081236 #360812 #123608
tetradic
#081236 #360829 #362C08 #083615
square
#081236 #360829 #362C08 #083615
split-complementary
#081236 #361508 #293608
monochromatic
#04091B #04091B #081236 #10246B #1836A1

Accessibility & contrast

On white

18.26
#081236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #081236
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081236#FFFFFF#000000##FFFFFF
##0812361.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#001335
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #081236;
/* rgb */ color: rgb(8, 18, 54);
/* oklch */ color: oklch(20.0% 0.072 267.5);
Tailwind
colors: {
  custom: {
    50: '#4f4f6d',
    500: '#081236',
    950: '#000000',
  },
}
SCSS
$custom: #081236;
$custom-light: #4f4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#081236",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 226.957,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19991,
    "c": 0.07195,
    "h": 267.5
  },
  "luminance": 0.00751
}

Semantic roles & 50–950 ramp

primary
#081236
secondary
#756325
accent
#C837F1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #081236

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

Preview Lab → · Contrast checker → · Palette generator →

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