#01012A#01012A

#01012A is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.4% C 0.086 H 266.8°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#01012A
RGBrgb(1, 1, 42)
HSLhsl(240, 95%, 8%)
HSVhsv(240, 98%, 16%)
CMYKcmyk(97.6%, 97.6%, 0%, 83.5%)
CIE-LABlab(1.76, 10.47, -23.88)
CIE-LCHlch(1.76, 26.07, 293.66°)
OKLaboklab(13.43% -0.0048 -0.0854)
OKLCHoklch(13.43% 0.086 266.8)
XYZxyz(0.4411, 0.1953, 2.2045)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01012A #2A2A01
analogous
#01152A #01012A #15012A
triadic
#01012A #2A0101 #012A01
tetradic
#01012A #2A0115 #2A2A01 #012A15
square
#01012A #2A0115 #2A2A01 #012A15
split-complementary
#01012A #2A1501 #152A01
monochromatic
#01011E #01011E #01012A #020266 #0404A2

Accessibility & contrast

On white

20.21
#01012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #01012A
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##01012A#FFFFFF#000000##FFFFFF
##01012A1.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #01012a;
/* rgb */ color: rgb(1, 1, 42);
/* oklch */ color: oklch(13.4% 0.086 266.8);
Tailwind
colors: {
  custom: {
    50: '#474764',
    500: '#01012a',
    950: '#000000',
  },
}
SCSS
$custom: #01012a;
$custom-light: #474764;
$custom-dark: #000000;
JSON
{
  "hex": "#01012a",
  "rgb": {
    "r": 1,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 240,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.13427,
    "c": 0.08551,
    "h": 266.8
  },
  "luminance": 0.00195
}

Semantic roles & 50–950 ramp

primary
#01012A
secondary
#707016
accent
#FF29FF
background
#F4F3F6
surface
#E6E5EB
border
#C2C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #01012A

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

Preview Lab → · Contrast checker → · Palette generator →

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