#04122B#04122B

#04122B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.6% C 0.055 H 259.5°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#04122B
RGBrgb(4, 18, 43)
HSLhsl(218, 83%, 9%)
HSVhsv(218, 91%, 17%)
CMYKcmyk(90.7%, 58.1%, 0%, 83.1%)
CIE-LABlab(5.72, 4.13, -18.40)
CIE-LCHlch(5.72, 18.86, 282.65°)
OKLaboklab(18.65% -0.01 -0.0541)
OKLCHoklch(18.65% 0.055 259.5)
XYZxyz(0.7023, 0.6328, 2.3702)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04122B #2B1D04
analogous
#04262B #04122B #0A042B
triadic
#04122B #2B0412 #122B04
tetradic
#04122B #2B0426 #2B1D04 #042B0A
square
#04122B #2B0426 #2B1D04 #042B0A
split-complementary
#04122B #2B0A04 #262B04
monochromatic
#030C1C #030C1C #04122B #092963 #0E419B

Accessibility & contrast

On white

18.64
#04122B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04122B
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04122B#FFFFFF#000000##FFFFFF
##04122B1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04122b;
/* rgb */ color: rgb(4, 18, 43);
/* oklch */ color: oklch(18.6% 0.055 259.5);
Tailwind
colors: {
  custom: {
    50: '#4a4f64',
    500: '#04122b',
    950: '#000000',
  },
}
SCSS
$custom: #04122b;
$custom-light: #4a4f64;
$custom-dark: #000000;
JSON
{
  "hex": "#04122b",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 43
  },
  "hsl": {
    "h": 218.462,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.1865,
    "c": 0.05503,
    "h": 259.5
  },
  "luminance": 0.00633
}

Semantic roles & 50–950 ramp

primary
#04122B
secondary
#6E511D
accent
#B12EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #04122B

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

Preview Lab → · Contrast checker → · Palette generator →

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