#04122C#04122C

#04122C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.7% C 0.057 H 260.0°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#04122C
RGBrgb(4, 18, 44)
HSLhsl(219, 83%, 9%)
HSVhsv(219, 91%, 17%)
CMYKcmyk(90.9%, 59.1%, 0%, 82.7%)
CIE-LABlab(5.78, 4.60, -19.04)
CIE-LCHlch(5.78, 19.59, 283.58°)
OKLaboklab(18.74% -0.0098 -0.0559)
OKLCHoklch(18.74% 0.057 260)
XYZxyz(0.7208, 0.6402, 2.4680)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04122C #2C1E04
analogous
#04262C #04122C #0A042C
triadic
#04122C #2C0412 #122C04
tetradic
#04122C #2C0426 #2C1E04 #042C0A
square
#04122C #2C0426 #2C1E04 #042C0A
split-complementary
#04122C #2C0A04 #262C04
monochromatic
#030B1C #030B1C #04122C #092964 #0E409C

Accessibility & contrast

On white

18.62
#04122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04122C
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04122C#FFFFFF#000000##FFFFFF
##04122C1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04122c;
/* rgb */ color: rgb(4, 18, 44);
/* oklch */ color: oklch(18.7% 0.057 260.0);
Tailwind
colors: {
  custom: {
    50: '#4a4f65',
    500: '#04122c',
    950: '#000000',
  },
}
SCSS
$custom: #04122c;
$custom-light: #4a4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#04122c",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 219,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18741,
    "c": 0.05677,
    "h": 260
  },
  "luminance": 0.0064
}

Semantic roles & 50–950 ramp

primary
#04122C
secondary
#6F521D
accent
#B22EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #04122C

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

Preview Lab → · Contrast checker → · Palette generator →

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