#05042D#05042D

#05042D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.081 H 273.1°. Best body text is #FFFFFF at 19.78:1 contrast (WCAG AA passes).

Color values

HEX#05042D
RGBrgb(5, 4, 45)
HSLhsl(241, 84%, 10%)
HSVhsv(241, 91%, 18%)
CMYKcmyk(88.9%, 91.1%, 0%, 82.4%)
CIE-LABlab(2.79, 11.73, -24.54)
CIE-LCHlch(2.79, 27.20, 295.54°)
OKLaboklab(15.36% 0.0044 -0.0805)
OKLCHoklch(15.36% 0.081 273.1)
XYZxyz(0.5795, 0.3085, 2.5111)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05042D #2C2D04
analogous
#04182D #05042D #1A042D
triadic
#05042D #2D0504 #042D05
tetradic
#05042D #2D0418 #2C2D04 #042D1A
square
#05042D #2D0418 #2C2D04 #042D1A
split-complementary
#05042D #2D1A04 #182D04
monochromatic
#03021C #03021C #05042D #0B0965 #110E9D

Accessibility & contrast

On white

19.78
#05042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#05042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05042D
19.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05042D#FFFFFF#000000##FFFFFF
##05042D1.0019.781.0619.78
#FFFFFF19.781.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#00082C
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #05042d;
/* rgb */ color: rgb(5, 4, 45);
/* oklch */ color: oklch(15.4% 0.081 273.1);
Tailwind
colors: {
  custom: {
    50: '#4a4866',
    500: '#05042d',
    950: '#000000',
  },
}
SCSS
$custom: #05042d;
$custom-light: #4a4866;
$custom-dark: #000000;
JSON
{
  "hex": "#05042d",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 241.463,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15361,
    "c": 0.0806,
    "h": 273.1
  },
  "luminance": 0.00309
}

Semantic roles & 50–950 ramp

primary
#05042D
secondary
#6E701D
accent
#FA2EF5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #05042D

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

Preview Lab → · Contrast checker → · Palette generator →

#05042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva