#05152F#05152F

#05152F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 19.9% C 0.057 H 258.8°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#05152F
RGBrgb(5, 21, 47)
HSLhsl(217, 81%, 10%)
HSVhsv(217, 89%, 18%)
CMYKcmyk(89.4%, 55.3%, 0%, 81.6%)
CIE-LABlab(6.99, 4.44, -19.35)
CIE-LCHlch(6.99, 19.86, 282.91°)
OKLaboklab(19.92% -0.011 -0.0557)
OKLCHoklch(19.92% 0.057 258.8)
XYZxyz(0.8437, 0.7737, 2.7937)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05152F #2F1F05
analogous
#052A2F #05152F #0A052F
triadic
#05152F #2F0515 #152F05
tetradic
#05152F #2F052A #2F1F05 #052F0A
square
#05152F #2F052A #2F1F05 #052F0A
split-complementary
#05152F #2F0A05 #2A2F05
monochromatic
#030C1C #030C1C #05152F #0B2E66 #11469E

Accessibility & contrast

On white

18.18
#05152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05152F
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05152F#FFFFFF#000000##FFFFFF
##05152F1.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081830
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #05152f;
/* rgb */ color: rgb(5, 21, 47);
/* oklch */ color: oklch(19.9% 0.057 258.8);
Tailwind
colors: {
  custom: {
    50: '#4b5167',
    500: '#05152f',
    950: '#000000',
  },
}
SCSS
$custom: #05152f;
$custom-light: #4b5167;
$custom-dark: #000000;
JSON
{
  "hex": "#05152f",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 217.143,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1992,
    "c": 0.05679,
    "h": 258.8
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#05152F
secondary
#71521F
accent
#AC31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05152F

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

Preview Lab → · Contrast checker → · Palette generator →

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