#04122D#04122D

#04122D is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.8% C 0.059 H 260.5°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#04122D
RGBrgb(4, 18, 45)
HSLhsl(220, 84%, 10%)
HSVhsv(220, 91%, 18%)
CMYKcmyk(91.1%, 60%, 0%, 82.4%)
CIE-LABlab(5.85, 5.09, -19.68)
CIE-LCHlch(5.85, 20.33, 284.49°)
OKLaboklab(18.83% -0.0096 -0.0577)
OKLCHoklch(18.83% 0.059 260.5)
XYZxyz(0.7399, 0.6478, 2.5682)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04122D #2D1F04
analogous
#04272D #04122D #0B042D
triadic
#04122D #2D0412 #122D04
tetradic
#04122D #2D0427 #2D1F04 #042D0B
square
#04122D #2D0427 #2D1F04 #042D0B
split-complementary
#04122D #2D0B04 #272D04
monochromatic
#020B1C #020B1C #04122D #092865 #0E3F9D

Accessibility & contrast

On white

18.59
#04122D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#04122D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04122D
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04122D#FFFFFF#000000##FFFFFF
##04122D1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04152E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #04122d;
/* rgb */ color: rgb(4, 18, 45);
/* oklch */ color: oklch(18.8% 0.059 260.5);
Tailwind
colors: {
  custom: {
    50: '#4a4f66',
    500: '#04122d',
    950: '#000000',
  },
}
SCSS
$custom: #04122d;
$custom-light: #4a4f66;
$custom-dark: #000000;
JSON
{
  "hex": "#04122d",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 45
  },
  "hsl": {
    "h": 219.512,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18833,
    "c": 0.0585,
    "h": 260.5
  },
  "luminance": 0.00648
}

Semantic roles & 50–950 ramp

primary
#04122D
secondary
#70531D
accent
#B42EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04122D

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

Preview Lab → · Contrast checker → · Palette generator →

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