#05152C#05152C

#05152C is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.7% C 0.052 H 256.9°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#05152C
RGBrgb(5, 21, 44)
HSLhsl(215, 80%, 10%)
HSVhsv(215, 89%, 17%)
CMYKcmyk(88.6%, 52.3%, 0%, 82.7%)
CIE-LABlab(6.78, 2.95, -17.46)
CIE-LCHlch(6.78, 17.71, 279.58°)
OKLaboklab(19.66% -0.0117 -0.0503)
OKLCHoklch(19.66% 0.052 256.9)
XYZxyz(0.7852, 0.7504, 2.4858)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05152C #2C1C05
analogous
#05292C #05152C #09052C
triadic
#05152C #2C0515 #152C05
tetradic
#05152C #2C0529 #2C1C05 #052C09
square
#05152C #2C0529 #2C1C05 #052C09
split-complementary
#05152C #2C0905 #292C05
monochromatic
#030D1B #030D1B #05152C #0B2F63 #11499A

Accessibility & contrast

On white

18.26
#05152C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05152C
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05152C#FFFFFF#000000##FFFFFF
##05152C1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172D
Deuteranopia (green-blind)
#04132C
Tritanopia (blue-blind)
#001A1E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #05152c;
/* rgb */ color: rgb(5, 21, 44);
/* oklch */ color: oklch(19.7% 0.052 256.9);
Tailwind
colors: {
  custom: {
    50: '#4a5265',
    500: '#05152c',
    950: '#000000',
  },
}
SCSS
$custom: #05152c;
$custom-light: #4a5265;
$custom-dark: #000000;
JSON
{
  "hex": "#05152c",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 44
  },
  "hsl": {
    "h": 215.385,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19664,
    "c": 0.05163,
    "h": 256.9
  },
  "luminance": 0.0075
}

Semantic roles & 50–950 ramp

primary
#05152C
secondary
#6E4D1F
accent
#A632F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05152C

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

Preview Lab → · Contrast checker → · Palette generator →

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