#01042C#01042C

#01042C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.7% C 0.082 H 265.9°. Best body text is #FFFFFF at 19.91:1 contrast (WCAG AA passes).

Color values

HEX#01042C
RGBrgb(1, 4, 44)
HSLhsl(236, 96%, 9%)
HSVhsv(236, 98%, 17%)
CMYKcmyk(97.7%, 90.9%, 0%, 82.7%)
CIE-LABlab(2.48, 10.20, -24.27)
CIE-LCHlch(2.48, 26.33, 292.79°)
OKLaboklab(14.74% -0.0058 -0.0815)
OKLCHoklch(14.74% 0.082 265.9)
XYZxyz(0.5104, 0.2751, 2.4086)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01042C #2C2901
analogous
#011A2C #01042C #14012C
triadic
#01042C #2C0104 #042C01
tetradic
#01042C #2C011A #2C2901 #012C14
square
#01042C #2C011A #2C2901 #012C14
split-complementary
#01042C #2C1401 #1A2C01
monochromatic
#01031E #01031E #01042C #020968 #040FA4

Accessibility & contrast

On white

19.91
#01042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#01042C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #01042C
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##01042C#FFFFFF#000000##FFFFFF
##01042C1.0019.911.0619.91
#FFFFFF19.911.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#00072B
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #01042c;
/* rgb */ color: rgb(1, 4, 44);
/* oklch */ color: oklch(14.7% 0.082 265.9);
Tailwind
colors: {
  custom: {
    50: '#484865',
    500: '#01042c',
    950: '#000000',
  },
}
SCSS
$custom: #01042c;
$custom-light: #484865;
$custom-dark: #000000;
JSON
{
  "hex": "#01042c",
  "rgb": {
    "r": 1,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 235.814,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.14738,
    "c": 0.08176,
    "h": 265.9
  },
  "luminance": 0.00275
}

Semantic roles & 50–950 ramp

primary
#01042C
secondary
#726C17
accent
#F029FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #01042C

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

Preview Lab → · Contrast checker → · Palette generator →

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