#080218#080218

#080218 is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.3% C 0.053 H 294.4°. Best body text is #FFFFFF at 20.34:1 contrast (WCAG AA passes).

Color values

HEX#080218
RGBrgb(8, 2, 24)
HSLhsl(256, 85%, 5%)
HSVhsv(256, 92%, 9%)
CMYKcmyk(66.7%, 91.7%, 0%, 90.6%)
CIE-LABlab(1.45, 5.48, -10.08)
CIE-LCHlch(1.45, 11.47, 298.52°)
OKLaboklab(12.33% 0.0217 -0.0478)
OKLCHoklch(12.33% 0.053 294.4)
XYZxyz(0.2867, 0.1610, 0.8799)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080218 #121802
analogous
#020718 #080218 #130218
triadic
#080218 #180802 #021808
tetradic
#080218 #180207 #121802 #021813
square
#080218 #180207 #121802 #021813
split-complementary
#080218 #181302 #071802
monochromatic
#09021C #09021C #09021C #1B0750 #2E0B89

Accessibility & contrast

On white

20.34
#080218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#080218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080218
20.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080218#FFFFFF#000000##FFFFFF
##0802181.0020.341.0320.34
#FFFFFF20.341.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000519
Deuteranopia (green-blind)
#000517
Tritanopia (blue-blind)
#05060B
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #080218;
/* rgb */ color: rgb(8, 2, 24);
/* oklch */ color: oklch(12.3% 0.053 294.4);
Tailwind
colors: {
  custom: {
    50: '#4a4754',
    500: '#080218',
    950: '#000000',
  },
}
SCSS
$custom: #080218;
$custom-light: #4a4754;
$custom-dark: #000000;
JSON
{
  "hex": "#080218",
  "rgb": {
    "r": 8,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 256.364,
    "s": 84.615,
    "l": 5.098
  },
  "oklch": {
    "l": 0.12328,
    "c": 0.05253,
    "h": 294.4
  },
  "luminance": 0.00161
}

Semantic roles & 50–950 ramp

primary
#080218
secondary
#4B5E18
accent
#FB2DC3
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010002
muted
#777778

Preview Lab

Preview with #080218

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

Preview Lab → · Contrast checker → · Palette generator →

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