#05152E#05152E

#05152E is a very dark, muted blue. Relative luminance 0.008; OKLCH L 19.8% C 0.055 H 258.2°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#05152E
RGBrgb(5, 21, 46)
HSLhsl(217, 80%, 10%)
HSVhsv(217, 89%, 18%)
CMYKcmyk(89.1%, 54.3%, 0%, 82%)
CIE-LABlab(6.92, 3.93, -18.73)
CIE-LCHlch(6.92, 19.13, 281.84°)
OKLaboklab(19.83% -0.0112 -0.0539)
OKLCHoklch(19.83% 0.055 258.2)
XYZxyz(0.8237, 0.7658, 2.6886)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05152E #2E1E05
analogous
#052A2E #05152E #09052E
triadic
#05152E #2E0515 #152E05
tetradic
#05152E #2E052A #2E1E05 #052E09
square
#05152E #2E052A #2E1E05 #052E09
split-complementary
#05152E #2E0905 #2A2E05
monochromatic
#030D1C #030D1C #05152E #0B2E65 #11479C

Accessibility & contrast

On white

18.21
#05152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#05152E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05152E
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05152E#FFFFFF#000000##FFFFFF
##05152E1.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172F
Deuteranopia (green-blind)
#03142D
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #05152e;
/* rgb */ color: rgb(5, 21, 46);
/* oklch */ color: oklch(19.8% 0.055 258.2);
Tailwind
colors: {
  custom: {
    50: '#4b5167',
    500: '#05152e',
    950: '#000000',
  },
}
SCSS
$custom: #05152e;
$custom-light: #4b5167;
$custom-dark: #000000;
JSON
{
  "hex": "#05152e",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 216.585,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.19833,
    "c": 0.05508,
    "h": 258.2
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#05152E
secondary
#70501F
accent
#AA31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05152E

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

Preview Lab → · Contrast checker → · Palette generator →

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