#04153B#04153B

#04153B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.077 H 262.3°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#04153B
RGBrgb(4, 21, 59)
HSLhsl(221, 87%, 12%)
HSVhsv(221, 93%, 23%)
CMYKcmyk(93.2%, 64.4%, 0%, 76.9%)
CIE-LABlab(7.93, 10.21, -26.57)
CIE-LCHlch(7.93, 28.47, 291.01°)
OKLaboklab(20.99% -0.0104 -0.0768)
OKLCHoklch(20.99% 0.077 262.3)
XYZxyz(1.1074, 0.8778, 4.2479)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04153B #3B2A04
analogous
#04303B #04153B #0F043B
triadic
#04153B #3B0415 #153B04
tetradic
#04153B #3B0430 #3B2A04 #043B0F
square
#04153B #3B0430 #3B2A04 #043B0F
split-complementary
#04153B #3B0F04 #303B04
monochromatic
#020A1D #020A1D #04153B #082974 #0C3EAE

Accessibility & contrast

On white

17.86
#04153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04153B
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04153B#FFFFFF#000000##FFFFFF
##04153B1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04153b;
/* rgb */ color: rgb(4, 21, 59);
/* oklch */ color: oklch(21.0% 0.077 262.3);
Tailwind
colors: {
  custom: {
    50: '#4f5171',
    500: '#04153b',
    950: '#000000',
  },
}
SCSS
$custom: #04153b;
$custom-light: #4f5171;
$custom-dark: #000000;
JSON
{
  "hex": "#04153b",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 221.455,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20987,
    "c": 0.07746,
    "h": 262.3
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#04153B
secondary
#7D5F1E
accent
#BC2AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #04153B

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

Preview Lab → · Contrast checker → · Palette generator →

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