#05001F#05001F

#05001F is a very dark, moderate blue. Relative luminance 0.001; OKLCH L 11.9% C 0.070 H 282.6°. Best body text is #FFFFFF at 20.46:1 contrast (WCAG AA passes).

Color values

HEX#05001F
RGBrgb(5, 0, 31)
HSLhsl(250, 100%, 6%)
HSVhsv(250, 100%, 12%)
CMYKcmyk(83.9%, 100%, 0%, 87.8%)
CIE-LABlab(1.19, 7.58, -16.14)
CIE-LCHlch(1.19, 17.83, 295.16°)
OKLaboklab(11.87% 0.0154 -0.0688)
OKLCHoklch(11.87% 0.07 282.6)
XYZxyz(0.3098, 0.1312, 1.3050)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05001F #1A1F00
analogous
#000A1F #05001F #14001F
triadic
#05001F #1F0500 #001F05
tetradic
#05001F #1F000A #1A1F00 #001F14
square
#05001F #1F000A #1A1F00 #001F14
split-complementary
#05001F #1F1400 #0A1F00
monochromatic
#05001F #05001F #05001F #0F005C #190099

Accessibility & contrast

On white

20.46
#05001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05001F
20.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05001F#FFFFFF#000000##FFFFFF
##05001F1.0020.461.0320.46
#FFFFFF20.461.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000520
Deuteranopia (green-blind)
#00041E
Tritanopia (blue-blind)
#00060D
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #05001f;
/* rgb */ color: rgb(5, 0, 31);
/* oklch */ color: oklch(11.9% 0.070 282.6);
Tailwind
colors: {
  custom: {
    50: '#48475a',
    500: '#05001f',
    950: '#000000',
  },
}
SCSS
$custom: #05001f;
$custom-light: #48475a;
$custom-dark: #000000;
JSON
{
  "hex": "#05001f",
  "rgb": {
    "r": 5,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 249.677,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.11872,
    "c": 0.07049,
    "h": 282.6
  },
  "luminance": 0.00131
}

Semantic roles & 50–950 ramp

primary
#05001F
secondary
#5B6812
accent
#FF29DC
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #05001F

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

Preview Lab → · Contrast checker → · Palette generator →

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