#1A012A#1A012A

#1A012A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.083 H 308.9°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#1A012A
RGBrgb(26, 1, 42)
HSLhsl(277, 95%, 8%)
HSVhsv(277, 98%, 16%)
CMYKcmyk(38.1%, 97.6%, 0%, 83.5%)
CIE-LABlab(3.69, 19.10, -20.72)
CIE-LCHlch(3.69, 28.18, 312.67°)
OKLaboklab(17.1% 0.0521 -0.0646)
OKLCHoklch(17.1% 0.083 308.9)
XYZxyz(0.8547, 0.4085, 2.2239)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A012A #112A01
analogous
#05012A #1A012A #2A0125
triadic
#1A012A #2A1A01 #012A1A
tetradic
#1A012A #2A0501 #112A01 #01252A
square
#1A012A #2A0501 #112A01 #01252A
split-complementary
#1A012A #252A01 #012A05
monochromatic
#13011E #13011E #1A012A #3F0266 #6404A2

Accessibility & contrast

On white

19.42
#1A012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A012A
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A012A#FFFFFF#000000##FFFFFF
##1A012A1.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a012a;
/* rgb */ color: rgb(26, 1, 42);
/* oklch */ color: oklch(17.1% 0.083 308.9);
Tailwind
colors: {
  custom: {
    50: '#574664',
    500: '#1a012a',
    950: '#000000',
  },
}
SCSS
$custom: #1a012a;
$custom-light: #574664;
$custom-dark: #000000;
JSON
{
  "hex": "#1a012a",
  "rgb": {
    "r": 26,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 276.585,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.17101,
    "c": 0.08297,
    "h": 308.9
  },
  "luminance": 0.00408
}

Semantic roles & 50–950 ramp

primary
#1A012A
secondary
#3A7016
accent
#FF297C
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#030005
muted
#787779

Preview Lab

Preview with #1A012A

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

Preview Lab → · Contrast checker → · Palette generator →

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