#04012B#04012B

#04012B is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.0% C 0.085 H 273.3°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#04012B
RGBrgb(4, 1, 43)
HSLhsl(244, 95%, 9%)
HSVhsv(244, 98%, 17%)
CMYKcmyk(90.7%, 97.7%, 0%, 83.1%)
CIE-LABlab(2.00, 11.71, -24.26)
CIE-LCHlch(2.00, 26.94, 295.77°)
OKLaboklab(14.03% 0.0049 -0.0844)
OKLCHoklch(14.03% 0.085 273.3)
XYZxyz(0.4968, 0.2219, 2.3017)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04012B #282B01
analogous
#01132B #04012B #19012B
triadic
#04012B #2B0401 #012B04
tetradic
#04012B #2B0113 #282B01 #012B19
square
#04012B #2B0113 #282B01 #012B19
split-complementary
#04012B #2B1901 #132B01
monochromatic
#03011E #03011E #04012B #0A0267 #0F04A3

Accessibility & contrast

On white

20.11
#04012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04012B
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04012B#FFFFFF#000000##FFFFFF
##04012B1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092C
Deuteranopia (green-blind)
#00062A
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04012b;
/* rgb */ color: rgb(4, 1, 43);
/* oklch */ color: oklch(14.0% 0.085 273.3);
Tailwind
colors: {
  custom: {
    50: '#494764',
    500: '#04012b',
    950: '#000000',
  },
}
SCSS
$custom: #04012b;
$custom-light: #494764;
$custom-dark: #000000;
JSON
{
  "hex": "#04012b",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 244.286,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.14028,
    "c": 0.08455,
    "h": 273.3
  },
  "luminance": 0.00222
}

Semantic roles & 50–950 ramp

primary
#04012B
secondary
#6B7117
accent
#FF29F0
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04012B

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

Preview Lab → · Contrast checker → · Palette generator →

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