#04012D#04012D

#04012D is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.3% C 0.087 H 272.7°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#04012D
RGBrgb(4, 1, 45)
HSLhsl(244, 96%, 9%)
HSVhsv(244, 98%, 18%)
CMYKcmyk(91.1%, 97.8%, 0%, 82.4%)
CIE-LABlab(2.14, 12.67, -25.57)
CIE-LCHlch(2.14, 28.53, 296.36°)
OKLaboklab(14.35% 0.0041 -0.0872)
OKLCHoklch(14.35% 0.087 272.7)
XYZxyz(0.5344, 0.2369, 2.4997)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04012D #2A2D01
analogous
#01142D #04012D #1A012D
triadic
#04012D #2D0401 #012D04
tetradic
#04012D #2D0114 #2A2D01 #012D1A
square
#04012D #2D0114 #2A2D01 #012D1A
split-complementary
#04012D #2D1A01 #142D01
monochromatic
#03011E #03011E #04012D #090269 #0F04A5

Accessibility & contrast

On white

20.05
#04012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04012D
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04012D#FFFFFF#000000##FFFFFF
##04012D1.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2E
Deuteranopia (green-blind)
#00062C
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04012d;
/* rgb */ color: rgb(4, 1, 45);
/* oklch */ color: oklch(14.3% 0.087 272.7);
Tailwind
colors: {
  custom: {
    50: '#494766',
    500: '#04012d',
    950: '#000000',
  },
}
SCSS
$custom: #04012d;
$custom-light: #494766;
$custom-dark: #000000;
JSON
{
  "hex": "#04012d",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 244.091,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.14347,
    "c": 0.0873,
    "h": 272.7
  },
  "luminance": 0.00237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #04012D

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

Preview Lab → · Contrast checker → · Palette generator →

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