#1A012C#1A012C

#1A012C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.085 H 307.0°. Best body text is #FFFFFF at 19.36:1 contrast (WCAG AA passes).

Color values

HEX#1A012C
RGBrgb(26, 1, 44)
HSLhsl(275, 96%, 9%)
HSVhsv(275, 98%, 17%)
CMYKcmyk(40.9%, 97.7%, 0%, 82.7%)
CIE-LABlab(3.82, 20.00, -22.03)
CIE-LCHlch(3.82, 29.76, 312.23°)
OKLaboklab(17.32% 0.0512 -0.068)
OKLCHoklch(17.32% 0.085 307)
XYZxyz(0.8914, 0.4232, 2.4171)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A012C #132C01
analogous
#05012C #1A012C #2C0129
triadic
#1A012C #2C1A01 #012C1A
tetradic
#1A012C #2C0501 #132C01 #01292C
square
#1A012C #2C0501 #132C01 #01292C
split-complementary
#1A012C #292C01 #012C05
monochromatic
#12011E #12011E #1A012C #3D0268 #6104A4

Accessibility & contrast

On white

19.36
#1A012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A012C
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A012C#FFFFFF#000000##FFFFFF
##1A012C1.0019.361.0819.36
#FFFFFF19.361.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000E2B
Tritanopia (blue-blind)
#170B16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1a012c;
/* rgb */ color: rgb(26, 1, 44);
/* oklch */ color: oklch(17.3% 0.085 307.0);
Tailwind
colors: {
  custom: {
    50: '#574665',
    500: '#1a012c',
    950: '#000000',
  },
}
SCSS
$custom: #1a012c;
$custom-light: #574665;
$custom-dark: #000000;
JSON
{
  "hex": "#1a012c",
  "rgb": {
    "r": 26,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 274.884,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.1732,
    "c": 0.08512,
    "h": 307
  },
  "luminance": 0.00423
}

Semantic roles & 50–950 ramp

primary
#1A012C
secondary
#3D7217
accent
#FF2982
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1A012C

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

Preview Lab → · Contrast checker → · Palette generator →

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