#05041F#05041F

#05041F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.5% C 0.058 H 277.7°. Best body text is #FFFFFF at 20.12:1 contrast (WCAG AA passes).

Color values

HEX#05041F
RGBrgb(5, 4, 31)
HSLhsl(242, 77%, 7%)
HSVhsv(242, 87%, 12%)
CMYKcmyk(83.9%, 87.1%, 0%, 87.8%)
CIE-LABlab(1.97, 5.98, -14.96)
CIE-LCHlch(1.97, 16.11, 291.79°)
OKLaboklab(13.5% 0.0078 -0.0577)
OKLCHoklch(13.5% 0.058 277.7)
XYZxyz(0.3532, 0.2180, 1.3195)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05041F #1E1F04
analogous
#04111F #05041F #13041F
triadic
#05041F #1F0504 #041F05
tetradic
#05041F #1F0411 #1E1F04 #041F13
square
#05041F #1F0411 #1E1F04 #041F13
split-complementary
#05041F #1F1304 #111F04
monochromatic
#04031B #04031B #05041F #0E0B55 #16128B

Accessibility & contrast

On white

20.12
#05041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#05041F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05041F
20.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05041F#FFFFFF#000000##FFFFFF
##05041F1.0020.121.0420.12
#FFFFFF20.121.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00061E
Tritanopia (blue-blind)
#000A10
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #05041f;
/* rgb */ color: rgb(5, 4, 31);
/* oklch */ color: oklch(13.5% 0.058 277.7);
Tailwind
colors: {
  custom: {
    50: '#48485a',
    500: '#05041f',
    950: '#000000',
  },
}
SCSS
$custom: #05041f;
$custom-light: #48485a;
$custom-dark: #000000;
JSON
{
  "hex": "#05041f",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 242.222,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13499,
    "c": 0.05824,
    "h": 277.7
  },
  "luminance": 0.00218
}

Semantic roles & 50–950 ramp

primary
#05041F
secondary
#5F621D
accent
#F434ED
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #05041F

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

Preview Lab → · Contrast checker → · Palette generator →

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