#04152D#04152D

#04152D is a very dark, muted blue. Relative luminance 0.008; OKLCH L 19.7% C 0.054 H 256.3°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#04152D
RGBrgb(4, 21, 45)
HSLhsl(215, 84%, 10%)
HSVhsv(215, 91%, 18%)
CMYKcmyk(91.1%, 53.3%, 0%, 82.4%)
CIE-LABlab(6.79, 3.17, -18.19)
CIE-LCHlch(6.79, 18.47, 279.89°)
OKLaboklab(19.68% -0.0128 -0.0524)
OKLCHoklch(19.68% 0.054 256.3)
XYZxyz(0.7917, 0.7515, 2.5854)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04152D #2D1C04
analogous
#042A2D #04152D #08042D
triadic
#04152D #2D0415 #152D04
tetradic
#04152D #2D042A #2D1C04 #042D08
square
#04152D #2D042A #2D1C04 #042D08
split-complementary
#04152D #2D0804 #2A2D04
monochromatic
#020D1C #020D1C #04152D #092F65 #0E499D

Accessibility & contrast

On white

18.25
#04152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04152D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04152D
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04152D#FFFFFF#000000##FFFFFF
##04152D1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09172E
Deuteranopia (green-blind)
#03132D
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04152d;
/* rgb */ color: rgb(4, 21, 45);
/* oklch */ color: oklch(19.7% 0.054 256.3);
Tailwind
colors: {
  custom: {
    50: '#4a5166',
    500: '#04152d',
    950: '#000000',
  },
}
SCSS
$custom: #04152d;
$custom-light: #4a5166;
$custom-dark: #000000;
JSON
{
  "hex": "#04152d",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 215.122,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19679,
    "c": 0.05398,
    "h": 256.3
  },
  "luminance": 0.00752
}

Semantic roles & 50–950 ramp

primary
#04152D
secondary
#704D1D
accent
#A52EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04152D

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

Preview Lab → · Contrast checker → · Palette generator →

#04152D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva