#05153C#05153C

#05153C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.079 H 263.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#05153C
RGBrgb(5, 21, 60)
HSLhsl(223, 85%, 13%)
HSVhsv(223, 92%, 24%)
CMYKcmyk(91.7%, 65%, 0%, 76.5%)
CIE-LABlab(8.08, 10.86, -27.04)
CIE-LCHlch(8.08, 29.14, 291.87°)
OKLaboklab(21.15% -0.0091 -0.0781)
OKLCHoklch(21.15% 0.079 263.4)
XYZxyz(1.1461, 0.8947, 4.3864)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05153C #3C2C05
analogous
#05303C #05153C #10053C
triadic
#05153C #3C0515 #153C05
tetradic
#05153C #3C0530 #3C2C05 #053C10
square
#05153C #3C0530 #3C2C05 #053C10
split-complementary
#05153C #3C1005 #303C05
monochromatic
#020A1C #020A1C #05153C #0A2974 #0E3DAD

Accessibility & contrast

On white

17.81
#05153C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#05153C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05153C
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05153C#FFFFFF#000000##FFFFFF
##05153C1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #05153c;
/* rgb */ color: rgb(5, 21, 60);
/* oklch */ color: oklch(21.1% 0.079 263.4);
Tailwind
colors: {
  custom: {
    50: '#505172',
    500: '#05153c',
    950: '#000000',
  },
}
SCSS
$custom: #05153c;
$custom-light: #505172;
$custom-dark: #000000;
JSON
{
  "hex": "#05153c",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 60
  },
  "hsl": {
    "h": 222.545,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21149,
    "c": 0.07862,
    "h": 263.4
  },
  "luminance": 0.00895
}

Semantic roles & 50–950 ramp

primary
#05153C
secondary
#7D6220
accent
#BF2DFB
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #05153C

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

Preview Lab → · Contrast checker → · Palette generator →

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