#1A012B#1A012B

#1A012B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.084 H 307.9°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#1A012B
RGBrgb(26, 1, 43)
HSLhsl(276, 95%, 9%)
HSVhsv(276, 98%, 17%)
CMYKcmyk(39.5%, 97.7%, 0%, 83.1%)
CIE-LABlab(3.76, 19.55, -21.38)
CIE-LCHlch(3.76, 28.97, 312.44°)
OKLaboklab(17.21% 0.0516 -0.0663)
OKLCHoklch(17.21% 0.084 307.9)
XYZxyz(0.8728, 0.4158, 2.3193)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A012B #122B01
analogous
#05012B #1A012B #2B0127
triadic
#1A012B #2B1A01 #012B1A
tetradic
#1A012B #2B0501 #122B01 #01272B
square
#1A012B #2B0501 #122B01 #01272B
split-complementary
#1A012B #272B01 #012B05
monochromatic
#12011E #12011E #1A012B #3E0267 #6204A3

Accessibility & contrast

On white

19.39
#1A012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1A012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A012B
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A012B#FFFFFF#000000##FFFFFF
##1A012B1.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#170A15
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1a012b;
/* rgb */ color: rgb(26, 1, 43);
/* oklch */ color: oklch(17.2% 0.084 307.9);
Tailwind
colors: {
  custom: {
    50: '#574664',
    500: '#1a012b',
    950: '#000000',
  },
}
SCSS
$custom: #1a012b;
$custom-light: #574664;
$custom-dark: #000000;
JSON
{
  "hex": "#1a012b",
  "rgb": {
    "r": 26,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 275.714,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.1721,
    "c": 0.08404,
    "h": 307.9
  },
  "luminance": 0.00416
}

Semantic roles & 50–950 ramp

primary
#1A012B
secondary
#3B7117
accent
#FF2980
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1A012B

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

Preview Lab → · Contrast checker → · Palette generator →

#1A012B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva