#05162F#05162F

#05162F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.2% C 0.055 H 257.4°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#05162F
RGBrgb(5, 22, 47)
HSLhsl(216, 81%, 10%)
HSVhsv(216, 89%, 18%)
CMYKcmyk(89.4%, 53.2%, 0%, 81.6%)
CIE-LABlab(7.33, 3.74, -18.81)
CIE-LCHlch(7.33, 19.18, 281.23°)
OKLaboklab(20.2% -0.0121 -0.054)
OKLCHoklch(20.2% 0.055 257.4)
XYZxyz(0.8624, 0.8112, 2.7999)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05162F #2F1E05
analogous
#052B2F #05162F #09052F
triadic
#05162F #2F0516 #162F05
tetradic
#05162F #2F052B #2F1E05 #052F09
square
#05162F #2F052B #2F1E05 #052F09
split-complementary
#05162F #2F0905 #2B2F05
monochromatic
#030D1C #030D1C #05162F #0B3066 #114A9E

Accessibility & contrast

On white

18.07
#05162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#05162F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05162F
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05162F#FFFFFF#000000##FFFFFF
##05162F1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05162f;
/* rgb */ color: rgb(5, 22, 47);
/* oklch */ color: oklch(20.2% 0.055 257.4);
Tailwind
colors: {
  custom: {
    50: '#4b5267',
    500: '#05162f',
    950: '#000000',
  },
}
SCSS
$custom: #05162f;
$custom-light: #4b5267;
$custom-dark: #000000;
JSON
{
  "hex": "#05162f",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 215.714,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20201,
    "c": 0.05531,
    "h": 257.4
  },
  "luminance": 0.00811
}

Semantic roles & 50–950 ramp

primary
#05162F
secondary
#71501F
accent
#A731F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05162F

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

Preview Lab → · Contrast checker → · Palette generator →

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