#04123A#04123A

#04123A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.080 H 264.1°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#04123A
RGBrgb(4, 18, 58)
HSLhsl(224, 87%, 12%)
HSVhsv(224, 93%, 23%)
CMYKcmyk(93.1%, 69%, 0%, 77.3%)
CIE-LABlab(6.90, 11.93, -27.53)
CIE-LCHlch(6.90, 30.00, 293.44°)
OKLaboklab(20.14% -0.0082 -0.0799)
OKLCHoklch(20.14% 0.08 264.1)
XYZxyz(1.0298, 0.7638, 4.0953)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04123A #3A2C04
analogous
#042D3A #04123A #11043A
triadic
#04123A #3A0412 #123A04
tetradic
#04123A #3A042D #3A2C04 #043A11
square
#04123A #3A042D #3A2C04 #043A11
split-complementary
#04123A #3A1104 #2D3A04
monochromatic
#02091D #02091D #04123A #082473 #0C36AD

Accessibility & contrast

On white

18.22
#04123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04123A
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04123A#FFFFFF#000000##FFFFFF
##04123A1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04123a;
/* rgb */ color: rgb(4, 18, 58);
/* oklch */ color: oklch(20.1% 0.080 264.1);
Tailwind
colors: {
  custom: {
    50: '#4f4f71',
    500: '#04123a',
    950: '#000000',
  },
}
SCSS
$custom: #04123a;
$custom-light: #4f4f71;
$custom-dark: #000000;
JSON
{
  "hex": "#04123a",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 224.444,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20141,
    "c": 0.08032,
    "h": 264.1
  },
  "luminance": 0.00764
}

Semantic roles & 50–950 ramp

primary
#04123A
secondary
#7C631E
accent
#C72BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #04123A

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

Preview Lab → · Contrast checker → · Palette generator →

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