#04122F#04122F

#04122F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.0% C 0.062 H 261.4°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#04122F
RGBrgb(4, 18, 47)
HSLhsl(220, 84%, 10%)
HSVhsv(220, 91%, 18%)
CMYKcmyk(91.5%, 61.7%, 0%, 81.6%)
CIE-LABlab(5.99, 6.09, -20.94)
CIE-LCHlch(5.99, 21.81, 286.20°)
OKLaboklab(19.02% -0.0093 -0.0613)
OKLCHoklch(19.02% 0.062 261.4)
XYZxyz(0.7793, 0.6636, 2.7758)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04122F #2F2104
analogous
#04282F #04122F #0B042F
triadic
#04122F #2F0412 #122F04
tetradic
#04122F #2F0428 #2F2104 #042F0B
square
#04122F #2F0428 #2F2104 #042F0B
split-complementary
#04122F #2F0B04 #282F04
monochromatic
#020B1C #020B1C #04122F #092867 #0E3DA0

Accessibility & contrast

On white

18.54
#04122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04122F
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04122F#FFFFFF#000000##FFFFFF
##04122F1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00191E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #04122f;
/* rgb */ color: rgb(4, 18, 47);
/* oklch */ color: oklch(19.0% 0.062 261.4);
Tailwind
colors: {
  custom: {
    50: '#4b4f68',
    500: '#04122f',
    950: '#000000',
  },
}
SCSS
$custom: #04122f;
$custom-light: #4b4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#04122f",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 220.465,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19022,
    "c": 0.06196,
    "h": 261.4
  },
  "luminance": 0.00664
}

Semantic roles & 50–950 ramp

primary
#04122F
secondary
#72561D
accent
#B82DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04122F

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

Preview Lab → · Contrast checker → · Palette generator →

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