#1A022D#1A022D

#1A022D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.6% C 0.084 H 305.5°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#1A022D
RGBrgb(26, 2, 45)
HSLhsl(273, 91%, 9%)
HSVhsv(273, 96%, 18%)
CMYKcmyk(42.2%, 95.6%, 0%, 82.4%)
CIE-LABlab(4.09, 20.02, -22.37)
CIE-LCHlch(4.09, 30.02, 311.83°)
OKLaboklab(17.65% 0.0487 -0.0682)
OKLCHoklch(17.65% 0.084 305.5)
XYZxyz(0.9213, 0.4525, 2.5209)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A022D #152D02
analogous
#04022D #1A022D #2D022B
triadic
#1A022D #2D1A02 #022D1A
tetradic
#1A022D #2D0402 #152D02 #022B2D
square
#1A022D #2D0402 #152D02 #022B2D
split-complementary
#1A022D #2B2D02 #022D04
monochromatic
#11011D #11011D #1A022D #3C0568 #5E07A2

Accessibility & contrast

On white

19.26
#1A022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1A022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A022D
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A022D#FFFFFF#000000##FFFFFF
##1A022D1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#160C17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1a022d;
/* rgb */ color: rgb(26, 2, 45);
/* oklch */ color: oklch(17.6% 0.084 305.5);
Tailwind
colors: {
  custom: {
    50: '#584766',
    500: '#1a022d',
    950: '#000000',
  },
}
SCSS
$custom: #1a022d;
$custom-light: #584766;
$custom-dark: #000000;
JSON
{
  "hex": "#1a022d",
  "rgb": {
    "r": 26,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 273.488,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17645,
    "c": 0.08384,
    "h": 305.5
  },
  "luminance": 0.00452
}

Semantic roles & 50–950 ramp

primary
#1A022D
secondary
#407219
accent
#FF2987
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1A022D

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

Preview Lab → · Contrast checker → · Palette generator →

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