#04012C#04012C

#04012C is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.2% C 0.086 H 273.0°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#04012C
RGBrgb(4, 1, 44)
HSLhsl(244, 96%, 9%)
HSVhsv(244, 98%, 17%)
CMYKcmyk(90.9%, 97.7%, 0%, 82.7%)
CIE-LABlab(2.07, 12.19, -24.92)
CIE-LCHlch(2.07, 27.74, 296.06°)
OKLaboklab(14.19% 0.0045 -0.0858)
OKLCHoklch(14.19% 0.086 273)
XYZxyz(0.5154, 0.2293, 2.3995)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04012C #292C01
analogous
#01142C #04012C #1A012C
triadic
#04012C #2C0401 #012C04
tetradic
#04012C #2C0114 #292C01 #012C1A
square
#04012C #2C0114 #292C01 #012C1A
split-complementary
#04012C #2C1A01 #142C01
monochromatic
#03011E #03011E #04012C #090268 #0F04A4

Accessibility & contrast

On white

20.08
#04012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04012C
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04012C#FFFFFF#000000##FFFFFF
##04012C1.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092D
Deuteranopia (green-blind)
#00062B
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04012c;
/* rgb */ color: rgb(4, 1, 44);
/* oklch */ color: oklch(14.2% 0.086 273.0);
Tailwind
colors: {
  custom: {
    50: '#494765',
    500: '#04012c',
    950: '#000000',
  },
}
SCSS
$custom: #04012c;
$custom-light: #494765;
$custom-dark: #000000;
JSON
{
  "hex": "#04012c",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 244.186,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.14187,
    "c": 0.08593,
    "h": 273
  },
  "luminance": 0.00229
}

Semantic roles & 50–950 ramp

primary
#04012C
secondary
#6C7217
accent
#FF29F0
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04012C

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

Preview Lab → · Contrast checker → · Palette generator →

#04012C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva