#01042A#01042A

#01042A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.4% C 0.079 H 266.0°. Best body text is #FFFFFF at 19.96:1 contrast (WCAG AA passes).

Color values

HEX#01042A
RGBrgb(1, 4, 42)
HSLhsl(236, 95%, 8%)
HSVhsv(236, 98%, 16%)
CMYKcmyk(97.6%, 90.5%, 0%, 83.5%)
CIE-LABlab(2.35, 9.27, -22.96)
CIE-LCHlch(2.35, 24.76, 291.98°)
OKLaboklab(14.44% -0.0055 -0.0785)
OKLCHoklch(14.44% 0.079 266)
XYZxyz(0.4737, 0.2604, 2.2153)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01042A #2A2701
analogous
#01182A #01042A #12012A
triadic
#01042A #2A0104 #042A01
tetradic
#01042A #2A0118 #2A2701 #012A12
square
#01042A #2A0118 #2A2701 #012A12
split-complementary
#01042A #2A1201 #182A01
monochromatic
#01031E #01031E #01042A #020A66 #040FA2

Accessibility & contrast

On white

19.96
#01042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#01042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #01042A
19.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##01042A#FFFFFF#000000##FFFFFF
##01042A1.0019.961.0519.96
#FFFFFF19.961.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2B
Deuteranopia (green-blind)
#000729
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #01042a;
/* rgb */ color: rgb(1, 4, 42);
/* oklch */ color: oklch(14.4% 0.079 266.0);
Tailwind
colors: {
  custom: {
    50: '#474864',
    500: '#01042a',
    950: '#000000',
  },
}
SCSS
$custom: #01042a;
$custom-light: #474864;
$custom-dark: #000000;
JSON
{
  "hex": "#01042a",
  "rgb": {
    "r": 1,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 235.61,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14444,
    "c": 0.07874,
    "h": 266
  },
  "luminance": 0.0026
}

Semantic roles & 50–950 ramp

primary
#01042A
secondary
#706A16
accent
#EF29FF
background
#F4F4F6
surface
#E6E6EB
border
#C2C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #01042A

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

Preview Lab → · Contrast checker → · Palette generator →

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