#05153A#05153A

#05153A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.9% C 0.075 H 263.0°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#05153A
RGBrgb(5, 21, 58)
HSLhsl(222, 84%, 12%)
HSVhsv(222, 91%, 23%)
CMYKcmyk(91.4%, 63.8%, 0%, 77.3%)
CIE-LABlab(7.89, 9.90, -25.91)
CIE-LCHlch(7.89, 27.74, 290.92°)
OKLaboklab(20.95% -0.0092 -0.0748)
OKLCHoklch(20.95% 0.075 263)
XYZxyz(1.0942, 0.8740, 4.1132)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05153A #3A2A05
analogous
#05303A #05153A #10053A
triadic
#05153A #3A0515 #153A05
tetradic
#05153A #3A0530 #3A2A05 #053A10
square
#05153A #3A0530 #3A2A05 #053A10
split-complementary
#05153A #3A1005 #303A05
monochromatic
#020A1C #020A1C #05153A #0A2972 #0F3EAB

Accessibility & contrast

On white

17.88
#05153A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#05153A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05153A
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05153A#FFFFFF#000000##FFFFFF
##05153A1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #05153a;
/* rgb */ color: rgb(5, 21, 58);
/* oklch */ color: oklch(20.9% 0.075 263.0);
Tailwind
colors: {
  custom: {
    50: '#4f5170',
    500: '#05153a',
    950: '#000000',
  },
}
SCSS
$custom: #05153a;
$custom-light: #4f5170;
$custom-dark: #000000;
JSON
{
  "hex": "#05153a",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 58
  },
  "hsl": {
    "h": 221.887,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20948,
    "c": 0.07535,
    "h": 263
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#05153A
secondary
#7B5F20
accent
#BD2DFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #05153A

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

Preview Lab → · Contrast checker → · Palette generator →

#05153A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva