#04153F#04153F

#04153F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.084 H 263.1°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#04153F
RGBrgb(4, 21, 63)
HSLhsl(223, 88%, 13%)
HSVhsv(223, 94%, 25%)
CMYKcmyk(93.7%, 66.7%, 0%, 75.3%)
CIE-LABlab(8.31, 12.11, -28.81)
CIE-LCHlch(8.31, 31.25, 292.80°)
OKLaboklab(21.4% -0.01 -0.0833)
OKLCHoklch(21.4% 0.084 263.1)
XYZxyz(1.2151, 0.9209, 4.8154)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04153F #3F2E04
analogous
#04323F #04153F #10043F
triadic
#04153F #3F0415 #153F04
tetradic
#04153F #3F0432 #3F2E04 #043F10
square
#04153F #3F0432 #3F2E04 #043F10
split-complementary
#04153F #3F1004 #323F04
monochromatic
#020A1D #020A1D #04153F #082879 #0B3BB2

Accessibility & contrast

On white

17.73
#04153F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#04153F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04153F
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04153F#FFFFFF#000000##FFFFFF
##04153F1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #04153f;
/* rgb */ color: rgb(4, 21, 63);
/* oklch */ color: oklch(21.4% 0.084 263.1);
Tailwind
colors: {
  custom: {
    50: '#505174',
    500: '#04153f',
    950: '#000000',
  },
}
SCSS
$custom: #04153f;
$custom-light: #505174;
$custom-dark: #000000;
JSON
{
  "hex": "#04153f",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 63
  },
  "hsl": {
    "h": 222.712,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21398,
    "c": 0.08391,
    "h": 263.1
  },
  "luminance": 0.00921
}

Semantic roles & 50–950 ramp

primary
#04153F
secondary
#80641E
accent
#C12AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #04153F

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

Preview Lab → · Contrast checker → · Palette generator →

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