#1A0C4F#1A0C4F

#1A0C4F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.113 H 282.6°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#1A0C4F
RGBrgb(26, 12, 79)
HSLhsl(253, 74%, 18%)
HSVhsv(253, 85%, 31%)
CMYKcmyk(67.1%, 84.8%, 0%, 69%)
CIE-LABlab(9.38, 27.93, -38.21)
CIE-LCHlch(9.38, 47.33, 306.16°)
OKLaboklab(23.12% 0.0247 -0.1102)
OKLCHoklch(23.12% 0.113 282.6)
XYZxyz(1.9683, 1.0469, 7.4940)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C4F #414F0C
analogous
#0C204F #1A0C4F #3B0C4F
triadic
#1A0C4F #4F1A0C #0C4F1A
tetradic
#1A0C4F #4F0C20 #414F0C #0C4F3B
square
#1A0C4F #4F0C20 #414F0C #0C4F3B
split-complementary
#1A0C4F #4F3B0C #204F0C
monochromatic
#09041B #09041B #1A0C4F #2B1484 #3D1CB9

Accessibility & contrast

On white

17.36
#1A0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1A0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0C4F
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C4F#FFFFFF#000000##FFFFFF
##1A0C4F1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00184E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1a0c4f;
/* rgb */ color: rgb(26, 12, 79);
/* oklch */ color: oklch(23.1% 0.113 282.6);
Tailwind
colors: {
  custom: {
    50: '#5f4d81',
    500: '#1a0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c4f;
$custom-light: #5f4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c4f",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 252.537,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23124,
    "c": 0.11292,
    "h": 282.6
  },
  "luminance": 0.01047
}

Semantic roles & 50–950 ramp

primary
#1A0C4F
secondary
#778B2C
accent
#F038CA
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #1A0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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