#04123F#04123F

#04123F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.088 H 264.7°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#04123F
RGBrgb(4, 18, 63)
HSLhsl(226, 88%, 13%)
HSVhsv(226, 94%, 25%)
CMYKcmyk(93.7%, 71.4%, 0%, 75.3%)
CIE-LABlab(7.38, 14.44, -30.33)
CIE-LCHlch(7.38, 33.59, 295.47°)
OKLaboklab(20.69% -0.0081 -0.0879)
OKLCHoklch(20.69% 0.088 264.7)
XYZxyz(1.1633, 0.8172, 4.7981)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04123F #3F3104
analogous
#042F3F #04123F #13043F
triadic
#04123F #3F0412 #123F04
tetradic
#04123F #3F042F #3F3104 #043F13
square
#04123F #3F042F #3F3104 #043F13
split-complementary
#04123F #3F1304 #2F3F04
monochromatic
#02081D #02081D #04123F #082279 #0B33B2

Accessibility & contrast

On white

18.05
#04123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#04123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04123F
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04123F#FFFFFF#000000##FFFFFF
##04123F1.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #04123f;
/* rgb */ color: rgb(4, 18, 63);
/* oklch */ color: oklch(20.7% 0.088 264.7);
Tailwind
colors: {
  custom: {
    50: '#514f75',
    500: '#04123f',
    950: '#000000',
  },
}
SCSS
$custom: #04123f;
$custom-light: #514f75;
$custom-dark: #000000;
JSON
{
  "hex": "#04123f",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 225.763,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20689,
    "c": 0.08828,
    "h": 264.7
  },
  "luminance": 0.00817
}

Semantic roles & 50–950 ramp

primary
#04123F
secondary
#80691E
accent
#CC2AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #04123F

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

Preview Lab → · Contrast checker → · Palette generator →

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