#04012E#04012E

#04012E is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.5% C 0.089 H 272.4°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#04012E
RGBrgb(4, 1, 46)
HSLhsl(244, 96%, 9%)
HSVhsv(244, 98%, 18%)
CMYKcmyk(91.3%, 97.8%, 0%, 82%)
CIE-LABlab(2.21, 13.16, -26.21)
CIE-LCHlch(2.21, 29.33, 296.66°)
OKLaboklab(14.51% 0.0037 -0.0886)
OKLCHoklch(14.51% 0.089 272.4)
XYZxyz(0.5539, 0.2447, 2.6023)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04012E #2B2E01
analogous
#01152E #04012E #1B012E
triadic
#04012E #2E0401 #012E04
tetradic
#04012E #2E0115 #2B2E01 #012E1B
square
#04012E #2E0115 #2B2E01 #012E1B
split-complementary
#04012E #2E1B01 #152E01
monochromatic
#03011E #03011E #04012E #09026A #0E04A6

Accessibility & contrast

On white

20.02
#04012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04012E
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04012E#FFFFFF#000000##FFFFFF
##04012E1.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2F
Deuteranopia (green-blind)
#00062D
Tritanopia (blue-blind)
#000E17
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04012e;
/* rgb */ color: rgb(4, 1, 46);
/* oklch */ color: oklch(14.5% 0.089 272.4);
Tailwind
colors: {
  custom: {
    50: '#4a4767',
    500: '#04012e',
    950: '#000000',
  },
}
SCSS
$custom: #04012e;
$custom-light: #4a4767;
$custom-dark: #000000;
JSON
{
  "hex": "#04012e",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 244,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.14507,
    "c": 0.08867,
    "h": 272.4
  },
  "luminance": 0.00245
}

Semantic roles & 50–950 ramp

primary
#04012E
secondary
#6E7417
accent
#FF29F1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04012E

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

Preview Lab → · Contrast checker → · Palette generator →

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