#1A0C4C#1A0C4C

#1A0C4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.109 H 283.6°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#1A0C4C
RGBrgb(26, 12, 76)
HSLhsl(253, 73%, 17%)
HSVhsv(253, 84%, 30%)
CMYKcmyk(65.8%, 84.2%, 0%, 70.2%)
CIE-LABlab(9.03, 26.91, -36.71)
CIE-LCHlch(9.03, 45.51, 306.24°)
OKLaboklab(22.77% 0.0257 -0.1058)
OKLCHoklch(22.77% 0.109 283.6)
XYZxyz(1.8616, 1.0042, 6.9318)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C4C #3E4C0C
analogous
#0C1E4C #1A0C4C #3A0C4C
triadic
#1A0C4C #4C1A0C #0C4C1A
tetradic
#1A0C4C #4C0C1E #3E4C0C #0C4C3A
square
#1A0C4C #4C0C1E #3E4C0C #0C4C3A
split-complementary
#1A0C4C #4C3A0C #1E4C0C
monochromatic
#09041A #09041A #1A0C4C #2C1481 #3E1DB6

Accessibility & contrast

On white

17.49
#1A0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1A0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0C4C
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C4C#FFFFFF#000000##FFFFFF
##1A0C4C1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1a0c4c;
/* rgb */ color: rgb(26, 12, 76);
/* oklch */ color: oklch(22.8% 0.109 283.6);
Tailwind
colors: {
  custom: {
    50: '#5e4d7f',
    500: '#1a0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c4c;
$custom-light: #5e4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c4c",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 253.125,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22774,
    "c": 0.10887,
    "h": 283.6
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#1A0C4C
secondary
#74882C
accent
#EF38C7
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1A0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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