#050217#050217

#050217 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.7% C 0.051 H 286.0°. Best body text is #FFFFFF at 20.44:1 contrast (WCAG AA passes).

Color values

HEX#050217
RGBrgb(5, 2, 23)
HSLhsl(249, 84%, 5%)
HSVhsv(249, 91%, 9%)
CMYKcmyk(78.3%, 91.3%, 0%, 91%)
CIE-LABlab(1.24, 4.43, -9.65)
CIE-LCHlch(1.24, 10.62, 294.67°)
OKLaboklab(11.66% 0.0141 -0.049)
OKLCHoklch(11.66% 0.051 286)
XYZxyz(0.2389, 0.1375, 0.8244)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050217 #141702
analogous
#020A17 #050217 #0F0217
triadic
#050217 #170502 #021705
tetradic
#050217 #17020A #141702 #02170F
square
#050217 #17020A #141702 #02170F
split-complementary
#050217 #170F02 #0A1702
monochromatic
#06021C #06021C #06021C #11074F #1D0C88

Accessibility & contrast

On white

20.44
#050217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050217
20.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050217#FFFFFF#000000##FFFFFF
##0502171.0020.441.0320.44
#FFFFFF20.441.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000518
Deuteranopia (green-blind)
#000417
Tritanopia (blue-blind)
#01060A
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #050217;
/* rgb */ color: rgb(5, 2, 23);
/* oklch */ color: oklch(11.7% 0.051 286.0);
Tailwind
colors: {
  custom: {
    50: '#494853',
    500: '#050217',
    950: '#000000',
  },
}
SCSS
$custom: #050217;
$custom-light: #494853;
$custom-dark: #000000;
JSON
{
  "hex": "#050217",
  "rgb": {
    "r": 5,
    "g": 2,
    "b": 23
  },
  "hsl": {
    "h": 248.571,
    "s": 84,
    "l": 4.902
  },
  "oklch": {
    "l": 0.11664,
    "c": 0.05099,
    "h": 286
  },
  "luminance": 0.00138
}

Semantic roles & 50–950 ramp

primary
#050217
secondary
#535D18
accent
#FA2EDD
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #050217

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

Preview Lab → · Contrast checker → · Palette generator →

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