#04153A#04153A

#04153A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.9% C 0.076 H 262.1°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#04153A
RGBrgb(4, 21, 58)
HSLhsl(221, 87%, 12%)
HSVhsv(221, 93%, 23%)
CMYKcmyk(93.1%, 63.8%, 0%, 77.3%)
CIE-LABlab(7.84, 9.73, -26.01)
CIE-LCHlch(7.84, 27.77, 290.50°)
OKLaboklab(20.89% -0.0105 -0.0751)
OKLCHoklch(20.89% 0.076 262.1)
XYZxyz(1.0817, 0.8675, 4.1126)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04153A #3A2904
analogous
#04303A #04153A #0E043A
triadic
#04153A #3A0415 #153A04
tetradic
#04153A #3A0430 #3A2904 #043A0E
square
#04153A #3A0430 #3A2904 #043A0E
split-complementary
#04153A #3A0E04 #303A04
monochromatic
#020A1D #020A1D #04153A #082A73 #0C3EAD

Accessibility & contrast

On white

17.89
#04153A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#04153A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04153A
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04153A#FFFFFF#000000##FFFFFF
##04153A1.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04153a;
/* rgb */ color: rgb(4, 21, 58);
/* oklch */ color: oklch(20.9% 0.076 262.1);
Tailwind
colors: {
  custom: {
    50: '#4f5170',
    500: '#04153a',
    950: '#000000',
  },
}
SCSS
$custom: #04153a;
$custom-light: #4f5170;
$custom-dark: #000000;
JSON
{
  "hex": "#04153a",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 58
  },
  "hsl": {
    "h": 221.111,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20887,
    "c": 0.07582,
    "h": 262.1
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#04153A
secondary
#7C5E1E
accent
#BB2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #04153A

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

Preview Lab → · Contrast checker → · Palette generator →

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