#08102F#08102F

#08102F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.063 H 268.6°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#08102F
RGBrgb(8, 16, 47)
HSLhsl(228, 71%, 11%)
HSVhsv(228, 83%, 18%)
CMYKcmyk(83%, 66%, 0%, 81.6%)
CIE-LABlab(5.67, 8.27, -21.45)
CIE-LCHlch(5.67, 22.99, 291.09°)
OKLaboklab(18.8% -0.0016 -0.0631)
OKLCHoklch(18.8% 0.063 268.6)
XYZxyz(0.7983, 0.6274, 2.7678)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08102F #2F2708
analogous
#08232F #08102F #13082F
triadic
#08102F #2F0810 #102F08
tetradic
#08102F #2F0823 #2F2708 #082F13
square
#08102F #2F0823 #2F2708 #082F13
split-complementary
#08102F #2F1308 #232F08
monochromatic
#04091A #04091A #08102F #112263 #1A3498

Accessibility & contrast

On white

18.66
#08102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08102F
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08102F#FFFFFF#000000##FFFFFF
##08102F1.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #08102f;
/* rgb */ color: rgb(8, 16, 47);
/* oklch */ color: oklch(18.8% 0.063 268.6);
Tailwind
colors: {
  custom: {
    50: '#4d4e68',
    500: '#08102f',
    950: '#000000',
  },
}
SCSS
$custom: #08102f;
$custom-light: #4d4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#08102f",
  "rgb": {
    "r": 8,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 227.692,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18796,
    "c": 0.06308,
    "h": 268.6
  },
  "luminance": 0.00627
}

Semantic roles & 50–950 ramp

primary
#08102F
secondary
#6E5F25
accent
#C93AEE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #08102F

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

Preview Lab → · Contrast checker → · Palette generator →

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