#05042B#05042B

#05042B is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.078 H 273.6°. Best body text is #FFFFFF at 19.83:1 contrast (WCAG AA passes).

Color values

HEX#05042B
RGBrgb(5, 4, 43)
HSLhsl(242, 83%, 9%)
HSVhsv(242, 91%, 17%)
CMYKcmyk(88.4%, 90.7%, 0%, 83.1%)
CIE-LABlab(2.65, 10.77, -23.23)
CIE-LCHlch(2.65, 25.61, 294.87°)
OKLaboklab(15.08% 0.0049 -0.0774)
OKLCHoklch(15.08% 0.078 273.6)
XYZxyz(0.5419, 0.2935, 2.3131)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05042B #2A2B04
analogous
#04172B #05042B #19042B
triadic
#05042B #2B0504 #042B05
tetradic
#05042B #2B0417 #2A2B04 #042B19
square
#05042B #2B0417 #2A2B04 #042B19
split-complementary
#05042B #2B1904 #172B04
monochromatic
#03031C #03031C #05042B #0C0963 #120E9B

Accessibility & contrast

On white

19.83
#05042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05042B
19.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05042B#FFFFFF#000000##FFFFFF
##05042B1.0019.831.0619.83
#FFFFFF19.831.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #05042b;
/* rgb */ color: rgb(5, 4, 43);
/* oklch */ color: oklch(15.1% 0.078 273.6);
Tailwind
colors: {
  custom: {
    50: '#494864',
    500: '#05042b',
    950: '#000000',
  },
}
SCSS
$custom: #05042b;
$custom-light: #494864;
$custom-dark: #000000;
JSON
{
  "hex": "#05042b",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 241.538,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15083,
    "c": 0.07757,
    "h": 273.6
  },
  "luminance": 0.00294
}

Semantic roles & 50–950 ramp

primary
#05042B
secondary
#6C6E1D
accent
#F92EF4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #05042B

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

Preview Lab → · Contrast checker → · Palette generator →

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