#05162E#05162E

#05162E is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.1% C 0.054 H 256.7°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#05162E
RGBrgb(5, 22, 46)
HSLhsl(215, 80%, 10%)
HSVhsv(215, 89%, 18%)
CMYKcmyk(89.1%, 52.2%, 0%, 82%)
CIE-LABlab(7.26, 3.24, -18.19)
CIE-LCHlch(7.26, 18.48, 280.10°)
OKLaboklab(20.12% -0.0123 -0.0522)
OKLCHoklch(20.12% 0.054 256.7)
XYZxyz(0.8425, 0.8032, 2.6949)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05162E #2E1D05
analogous
#052A2E #05162E #09052E
triadic
#05162E #2E0516 #162E05
tetradic
#05162E #2E052A #2E1D05 #052E09
square
#05162E #2E052A #2E1D05 #052E09
split-complementary
#05162E #2E0905 #2A2E05
monochromatic
#030D1C #030D1C #05162E #0B3065 #114B9C

Accessibility & contrast

On white

18.09
#05162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05162E
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05162E#FFFFFF#000000##FFFFFF
##05162E1.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182F
Deuteranopia (green-blind)
#04142E
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05162e;
/* rgb */ color: rgb(5, 22, 46);
/* oklch */ color: oklch(20.1% 0.054 256.7);
Tailwind
colors: {
  custom: {
    50: '#4b5267',
    500: '#05162e',
    950: '#000000',
  },
}
SCSS
$custom: #05162e;
$custom-light: #4b5267;
$custom-dark: #000000;
JSON
{
  "hex": "#05162e",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 215.122,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.20117,
    "c": 0.0536,
    "h": 256.7
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#05162E
secondary
#704E1F
accent
#A531F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05162E

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

Preview Lab → · Contrast checker → · Palette generator →

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