#08112F#08112F

#08112F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.1% C 0.061 H 267.5°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#08112F
RGBrgb(8, 17, 47)
HSLhsl(226, 71%, 11%)
HSVhsv(226, 83%, 18%)
CMYKcmyk(83%, 63.8%, 0%, 81.6%)
CIE-LABlab(5.94, 7.72, -21.01)
CIE-LCHlch(5.94, 22.38, 290.17°)
OKLaboklab(19.05% -0.0027 -0.0614)
OKLCHoklch(19.05% 0.061 267.5)
XYZxyz(0.8135, 0.6577, 2.7728)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08112F #2F2608
analogous
#08242F #08112F #12082F
triadic
#08112F #2F0811 #112F08
tetradic
#08112F #2F0824 #2F2608 #082F12
square
#08112F #2F0824 #2F2608 #082F12
split-complementary
#08112F #2F1208 #242F08
monochromatic
#04091A #04091A #08112F #112463 #1A3798

Accessibility & contrast

On white

18.56
#08112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#08112F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08112F
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08112F#FFFFFF#000000##FFFFFF
##08112F1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #08112f;
/* rgb */ color: rgb(8, 17, 47);
/* oklch */ color: oklch(19.1% 0.061 267.5);
Tailwind
colors: {
  custom: {
    50: '#4d4f68',
    500: '#08112f',
    950: '#000000',
  },
}
SCSS
$custom: #08112f;
$custom-light: #4d4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#08112f",
  "rgb": {
    "r": 8,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 226.154,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19051,
    "c": 0.06148,
    "h": 267.5
  },
  "luminance": 0.00658
}

Semantic roles & 50–950 ramp

primary
#08112F
secondary
#6E5D25
accent
#C43AEE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #08112F

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

Preview Lab → · Contrast checker → · Palette generator →

#08112F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva