#05142B#05142B

#05142B is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.3% C 0.051 H 257.8°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#05142B
RGBrgb(5, 20, 43)
HSLhsl(216, 79%, 9%)
HSVhsv(216, 88%, 17%)
CMYKcmyk(88.4%, 53.5%, 0%, 83.1%)
CIE-LABlab(6.39, 3.14, -17.34)
CIE-LCHlch(6.39, 17.62, 280.27°)
OKLaboklab(19.29% -0.0108 -0.0502)
OKLCHoklch(19.29% 0.051 257.8)
XYZxyz(0.7486, 0.7069, 2.3820)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05142B #2B1C05
analogous
#05272B #05142B #09052B
triadic
#05142B #2B0514 #142B05
tetradic
#05142B #2B0527 #2B1C05 #052B09
square
#05142B #2B0527 #2B1C05 #052B09
split-complementary
#05142B #2B0905 #272B05
monochromatic
#030D1B #030D1B #05142B #0B2E62 #124799

Accessibility & contrast

On white

18.40
#05142B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#05142B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05142B
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05142B#FFFFFF#000000##FFFFFF
##05142B1.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09162C
Deuteranopia (green-blind)
#04122B
Tritanopia (blue-blind)
#00191D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #05142b;
/* rgb */ color: rgb(5, 20, 43);
/* oklch */ color: oklch(19.3% 0.051 257.8);
Tailwind
colors: {
  custom: {
    50: '#4a5164',
    500: '#05142b',
    950: '#000000',
  },
}
SCSS
$custom: #05142b;
$custom-light: #4a5164;
$custom-dark: #000000;
JSON
{
  "hex": "#05142b",
  "rgb": {
    "r": 5,
    "g": 20,
    "b": 43
  },
  "hsl": {
    "h": 216.316,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19293,
    "c": 0.05137,
    "h": 257.8
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#05142B
secondary
#6D4E1F
accent
#A832F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05142B

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

Preview Lab → · Contrast checker → · Palette generator →

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