#04123B#04123B

#04123B is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.082 H 264.3°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#04123B
RGBrgb(4, 18, 59)
HSLhsl(225, 87%, 12%)
HSVhsv(225, 93%, 23%)
CMYKcmyk(93.2%, 69.5%, 0%, 76.9%)
CIE-LABlab(6.99, 12.45, -28.10)
CIE-LCHlch(6.99, 30.73, 293.89°)
OKLaboklab(20.25% -0.0082 -0.0815)
OKLCHoklch(20.25% 0.082 264.3)
XYZxyz(1.0555, 0.7741, 4.2306)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04123B #3B2D04
analogous
#042E3B #04123B #11043B
triadic
#04123B #3B0412 #123B04
tetradic
#04123B #3B042E #3B2D04 #043B11
square
#04123B #3B042E #3B2D04 #043B11
split-complementary
#04123B #3B1104 #2E3B04
monochromatic
#02091D #02091D #04123B #082374 #0C35AE

Accessibility & contrast

On white

18.18
#04123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04123B
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04123B#FFFFFF#000000##FFFFFF
##04123B1.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#001D24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04123b;
/* rgb */ color: rgb(4, 18, 59);
/* oklch */ color: oklch(20.2% 0.082 264.3);
Tailwind
colors: {
  custom: {
    50: '#4f4f71',
    500: '#04123b',
    950: '#000000',
  },
}
SCSS
$custom: #04123b;
$custom-light: #4f4f71;
$custom-dark: #000000;
JSON
{
  "hex": "#04123b",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 224.727,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20249,
    "c": 0.08193,
    "h": 264.3
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#04123B
secondary
#7D651E
accent
#C82AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #04123B

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

Preview Lab → · Contrast checker → · Palette generator →

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