#05153F#05153F

#05153F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.083 H 263.9°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#05153F
RGBrgb(5, 21, 63)
HSLhsl(223, 85%, 13%)
HSVhsv(223, 92%, 25%)
CMYKcmyk(92.1%, 66.7%, 0%, 75.3%)
CIE-LABlab(8.37, 12.27, -28.71)
CIE-LCHlch(8.37, 31.22, 293.13°)
OKLaboklab(21.46% -0.0089 -0.083)
OKLCHoklch(21.46% 0.083 263.9)
XYZxyz(1.2276, 0.9273, 4.8160)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05153F #3F2F05
analogous
#05323F #05153F #12053F
triadic
#05153F #3F0515 #153F05
tetradic
#05153F #3F0532 #3F2F05 #053F12
square
#05153F #3F0532 #3F2F05 #053F12
split-complementary
#05153F #3F1205 #323F05
monochromatic
#02091C #02091C #05153F #092878 #0E3BB0

Accessibility & contrast

On white

17.72
#05153F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#05153F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05153F
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05153F#FFFFFF#000000##FFFFFF
##05153F1.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #05153f;
/* rgb */ color: rgb(5, 21, 63);
/* oklch */ color: oklch(21.5% 0.083 263.9);
Tailwind
colors: {
  custom: {
    50: '#515174',
    500: '#05153f',
    950: '#000000',
  },
}
SCSS
$custom: #05153f;
$custom-light: #515174;
$custom-dark: #000000;
JSON
{
  "hex": "#05153f",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 63
  },
  "hsl": {
    "h": 223.448,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21456,
    "c": 0.08348,
    "h": 263.9
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#05153F
secondary
#806520
accent
#C22CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #05153F

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

Preview Lab → · Contrast checker → · Palette generator →

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