#05152B#05152B

#05152B is a very dark, muted cyan. Relative luminance 0.007; OKLCH L 19.6% C 0.050 H 256.1°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#05152B
RGBrgb(5, 21, 43)
HSLhsl(215, 79%, 9%)
HSVhsv(215, 88%, 17%)
CMYKcmyk(88.4%, 51.2%, 0%, 83.1%)
CIE-LABlab(6.71, 2.48, -16.83)
CIE-LCHlch(6.71, 17.01, 278.38°)
OKLaboklab(19.58% -0.012 -0.0484)
OKLCHoklch(19.58% 0.05 256.1)
XYZxyz(0.7666, 0.7429, 2.3880)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05152B #2B1B05
analogous
#05282B #05152B #08052B
triadic
#05152B #2B0515 #152B05
tetradic
#05152B #2B0528 #2B1B05 #052B08
square
#05152B #2B0528 #2B1B05 #052B08
split-complementary
#05152B #2B0805 #282B05
monochromatic
#030D1B #030D1B #05152B #0B3062 #124B99

Accessibility & contrast

On white

18.28
#05152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#05152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05152B
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05152B#FFFFFF#000000##FFFFFF
##05152B1.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172C
Deuteranopia (green-blind)
#05132B
Tritanopia (blue-blind)
#001A1D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #05152b;
/* rgb */ color: rgb(5, 21, 43);
/* oklch */ color: oklch(19.6% 0.050 256.1);
Tailwind
colors: {
  custom: {
    50: '#4a5264',
    500: '#05152b',
    950: '#000000',
  },
}
SCSS
$custom: #05152b;
$custom-light: #4a5264;
$custom-dark: #000000;
JSON
{
  "hex": "#05152b",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 214.737,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19581,
    "c": 0.04991,
    "h": 256.1
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#05152B
secondary
#6D4C1F
accent
#A332F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05152B

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

Preview Lab → · Contrast checker → · Palette generator →

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