#05021F#05021F

#05021F is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.7% C 0.064 H 280.2°. Best body text is #FFFFFF at 20.29:1 contrast (WCAG AA passes).

Color values

HEX#05021F
RGBrgb(5, 2, 31)
HSLhsl(246, 88%, 6%)
HSVhsv(246, 94%, 12%)
CMYKcmyk(83.9%, 93.5%, 0%, 87.8%)
CIE-LABlab(1.58, 6.78, -15.55)
CIE-LCHlch(1.58, 16.96, 293.56°)
OKLaboklab(12.74% 0.0114 -0.0628)
OKLCHoklch(12.74% 0.064 280.2)
XYZxyz(0.3315, 0.1746, 1.3123)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05021F #1C1F02
analogous
#020E1F #05021F #14021F
triadic
#05021F #1F0502 #021F05
tetradic
#05021F #1F020E #1C1F02 #021F14
square
#05021F #1F020E #1C1F02 #021F14
split-complementary
#05021F #1F1402 #0E1F02
monochromatic
#05021D #05021D #05021F #0E0658 #180992

Accessibility & contrast

On white

20.29
#05021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#05021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05021F
20.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05021F#FFFFFF#000000##FFFFFF
##05021F1.0020.291.0320.29
#FFFFFF20.291.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000720
Deuteranopia (green-blind)
#00051E
Tritanopia (blue-blind)
#00080F
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #05021f;
/* rgb */ color: rgb(5, 2, 31);
/* oklch */ color: oklch(12.7% 0.064 280.2);
Tailwind
colors: {
  custom: {
    50: '#48485a',
    500: '#05021f',
    950: '#000000',
  },
}
SCSS
$custom: #05021f;
$custom-light: #48485a;
$custom-dark: #000000;
JSON
{
  "hex": "#05021f",
  "rgb": {
    "r": 5,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 246.207,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.12737,
    "c": 0.06387,
    "h": 280.2
  },
  "luminance": 0.00175
}

Semantic roles & 50–950 ramp

primary
#05021F
secondary
#5D6518
accent
#FE2AE8
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #05021F

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

Preview Lab → · Contrast checker → · Palette generator →

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