#1A0C4D#1A0C4D

#1A0C4D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.110 H 283.3°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#1A0C4D
RGBrgb(26, 12, 77)
HSLhsl(253, 73%, 17%)
HSVhsv(253, 84%, 30%)
CMYKcmyk(66.2%, 84.4%, 0%, 69.8%)
CIE-LABlab(9.14, 27.24, -37.21)
CIE-LCHlch(9.14, 46.12, 306.21°)
OKLaboklab(22.89% 0.0253 -0.1073)
OKLCHoklch(22.89% 0.11 283.3)
XYZxyz(1.8966, 1.0183, 7.1163)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C4D #3F4D0C
analogous
#0C1F4D #1A0C4D #3B0C4D
triadic
#1A0C4D #4D1A0C #0C4D1A
tetradic
#1A0C4D #4D0C1F #3F4D0C #0C4D3B
square
#1A0C4D #4D0C1F #3F4D0C #0C4D3B
split-complementary
#1A0C4D #4D3B0C #1F4D0C
monochromatic
#09041A #09041A #1A0C4D #2C1482 #3E1DB7

Accessibility & contrast

On white

17.45
#1A0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0C4D
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C4D#FFFFFF#000000##FFFFFF
##1A0C4D1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00184C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1a0c4d;
/* rgb */ color: rgb(26, 12, 77);
/* oklch */ color: oklch(22.9% 0.110 283.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d80',
    500: '#1a0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c4d;
$custom-light: #5f4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c4d",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 252.923,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2289,
    "c": 0.11023,
    "h": 283.3
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#1A0C4D
secondary
#75892C
accent
#F038C8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1A0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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