#04152E#04152E

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

Color values

HEX#04152E
RGBrgb(4, 21, 46)
HSLhsl(216, 84%, 10%)
HSVhsv(216, 91%, 18%)
CMYKcmyk(91.3%, 54.3%, 0%, 82%)
CIE-LABlab(6.86, 3.67, -18.82)
CIE-LCHlch(6.86, 19.18, 281.02°)
OKLaboklab(19.77% -0.0125 -0.0543)
OKLCHoklch(19.77% 0.056 257)
XYZxyz(0.8112, 0.7593, 2.6880)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04152E #2E1D04
analogous
#042A2E #04152E #08042E
triadic
#04152E #2E0415 #152E04
tetradic
#04152E #2E042A #2E1D04 #042E08
square
#04152E #2E042A #2E1D04 #042E08
split-complementary
#04152E #2E0804 #2A2E04
monochromatic
#020D1C #020D1C #04152E #092F66 #0E489F

Accessibility & contrast

On white

18.23
#04152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04152E
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04152E#FFFFFF#000000##FFFFFF
##04152E1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04152e;
/* rgb */ color: rgb(4, 21, 46);
/* oklch */ color: oklch(19.8% 0.056 257.0);
Tailwind
colors: {
  custom: {
    50: '#4a5167',
    500: '#04152e',
    950: '#000000',
  },
}
SCSS
$custom: #04152e;
$custom-light: #4a5167;
$custom-dark: #000000;
JSON
{
  "hex": "#04152e",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 215.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19765,
    "c": 0.05568,
    "h": 257
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#04152E
secondary
#714F1D
accent
#A72EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04152E

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

Preview Lab → · Contrast checker → · Palette generator →

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