#1A0C5F#1A0C5F

#1A0C5F is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.1% C 0.134 H 278.3°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#1A0C5F
RGBrgb(26, 12, 95)
HSLhsl(250, 78%, 21%)
HSVhsv(250, 87%, 37%)
CMYKcmyk(72.6%, 87.4%, 0%, 62.7%)
CIE-LABlab(11.34, 33.26, -45.84)
CIE-LCHlch(11.34, 56.64, 305.96°)
OKLaboklab(25.06% 0.0193 -0.1324)
OKLCHoklch(25.06% 0.134 278.3)
XYZxyz(2.6224, 1.3086, 10.9386)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C5F #515F0C
analogous
#0C275F #1A0C5F #430C5F
triadic
#1A0C5F #5F1A0C #0C5F1A
tetradic
#1A0C5F #5F0C27 #515F0C #0C5F43
square
#1A0C5F #5F0C27 #515F0C #0C5F43
split-complementary
#1A0C5F #5F430C #275F0C
monochromatic
#07031B #0B0529 #1A0C5F #291395 #381ACC

Accessibility & contrast

On white

16.64
#1A0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1A0C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0C5F
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C5F#FFFFFF#000000##FFFFFF
##1A0C5F1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1a0c5f;
/* rgb */ color: rgb(26, 12, 95);
/* oklch */ color: oklch(25.1% 0.134 278.3);
Tailwind
colors: {
  custom: {
    50: '#634e8d',
    500: '#1a0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c5f;
$custom-light: #634e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c5f",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 250.12,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25062,
    "c": 0.13382,
    "h": 278.3
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#1A0C5F
secondary
#87992D
accent
#F434D4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1A0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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