#081231#081231

#081231 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.5% C 0.063 H 266.8°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#081231
RGBrgb(8, 18, 49)
HSLhsl(225, 72%, 11%)
HSVhsv(225, 84%, 19%)
CMYKcmyk(83.7%, 63.3%, 0%, 80.8%)
CIE-LABlab(6.38, 8.17, -21.80)
CIE-LCHlch(6.38, 23.28, 290.54°)
OKLaboklab(19.5% -0.0036 -0.0633)
OKLCHoklch(19.5% 0.063 266.8)
XYZxyz(0.8706, 0.7059, 2.9955)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081231 #312708
analogous
#082631 #081231 #120831
triadic
#081231 #310812 #123108
tetradic
#081231 #310826 #312708 #083112
square
#081231 #310826 #312708 #083112
split-complementary
#081231 #311208 #263108
monochromatic
#040A1A #040A1A #081231 #112566 #19399A

Accessibility & contrast

On white

18.40
#081231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#081231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081231
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081231#FFFFFF#000000##FFFFFF
##0812311.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011632
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#00191F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #081231;
/* rgb */ color: rgb(8, 18, 49);
/* oklch */ color: oklch(19.5% 0.063 266.8);
Tailwind
colors: {
  custom: {
    50: '#4d4f69',
    500: '#081231',
    950: '#000000',
  },
}
SCSS
$custom: #081231;
$custom-light: #4d4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#081231",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 225.366,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.195,
    "c": 0.06339,
    "h": 266.8
  },
  "luminance": 0.00706
}

Semantic roles & 50–950 ramp

primary
#081231
secondary
#705E25
accent
#C239EF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #081231

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

Preview Lab → · Contrast checker → · Palette generator →

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