#08182F#08182F

#08182F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.0% C 0.051 H 257.6°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#08182F
RGBrgb(8, 24, 47)
HSLhsl(215, 71%, 11%)
HSVhsv(215, 83%, 18%)
CMYKcmyk(83%, 48.9%, 0%, 81.6%)
CIE-LABlab(8.22, 2.93, -17.38)
CIE-LCHlch(8.22, 17.63, 279.55°)
OKLaboklab(20.96% -0.0109 -0.0496)
OKLCHoklch(20.96% 0.051 257.6)
XYZxyz(0.9397, 0.9100, 2.8149)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08182F #2F1F08
analogous
#082B2F #08182F #0B082F
triadic
#08182F #2F0818 #182F08
tetradic
#08182F #2F082B #2F1F08 #082F0B
square
#08182F #2F082B #2F1F08 #082F0B
split-complementary
#08182F #2F0B08 #2B2F08
monochromatic
#040D1A #040D1A #08182F #113363 #1A4D98

Accessibility & contrast

On white

17.77
#08182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#08182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08182F
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08182F#FFFFFF#000000##FFFFFF
##08182F1.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#07162F
Tritanopia (blue-blind)
#001D21
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #08182f;
/* rgb */ color: rgb(8, 24, 47);
/* oklch */ color: oklch(21.0% 0.051 257.6);
Tailwind
colors: {
  custom: {
    50: '#4d5467',
    500: '#08182f',
    950: '#000000',
  },
}
SCSS
$custom: #08182f;
$custom-light: #4d5467;
$custom-dark: #000000;
JSON
{
  "hex": "#08182f",
  "rgb": {
    "r": 8,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 215.385,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20957,
    "c": 0.05075,
    "h": 257.6
  },
  "luminance": 0.0091
}

Semantic roles & 50–950 ramp

primary
#08182F
secondary
#6E5025
accent
#A43AEE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #08182F

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

Preview Lab → · Contrast checker → · Palette generator →

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