#04012A#04012A

#04012A is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.9% C 0.083 H 273.6°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#04012A
RGBrgb(4, 1, 42)
HSLhsl(244, 95%, 8%)
HSVhsv(244, 98%, 16%)
CMYKcmyk(90.5%, 97.6%, 0%, 83.5%)
CIE-LABlab(1.94, 11.25, -23.60)
CIE-LCHlch(1.94, 26.14, 295.50°)
OKLaboklab(13.87% 0.0053 -0.083)
OKLCHoklch(13.87% 0.083 273.6)
XYZxyz(0.4787, 0.2146, 2.2062)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04012A #272A01
analogous
#01122A #04012A #18012A
triadic
#04012A #2A0401 #012A04
tetradic
#04012A #2A0112 #272A01 #012A18
square
#04012A #2A0112 #272A01 #012A18
split-complementary
#04012A #2A1801 #122A01
monochromatic
#03011E #03011E #04012A #0A0266 #0F04A2

Accessibility & contrast

On white

20.13
#04012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04012A
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04012A#FFFFFF#000000##FFFFFF
##04012A1.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092B
Deuteranopia (green-blind)
#000529
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04012a;
/* rgb */ color: rgb(4, 1, 42);
/* oklch */ color: oklch(13.9% 0.083 273.6);
Tailwind
colors: {
  custom: {
    50: '#494764',
    500: '#04012a',
    950: '#000000',
  },
}
SCSS
$custom: #04012a;
$custom-light: #494764;
$custom-dark: #000000;
JSON
{
  "hex": "#04012a",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 244.39,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.13868,
    "c": 0.08317,
    "h": 273.6
  },
  "luminance": 0.00215
}

Semantic roles & 50–950 ramp

primary
#04012A
secondary
#6A7016
accent
#FF29EF
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04012A

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

Preview Lab → · Contrast checker → · Palette generator →

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