#1A0C4B#1A0C4B

#1A0C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.108 H 284.0°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#1A0C4B
RGBrgb(26, 12, 75)
HSLhsl(253, 72%, 17%)
HSVhsv(253, 84%, 29%)
CMYKcmyk(65.3%, 84%, 0%, 70.6%)
CIE-LABlab(8.91, 26.56, -36.20)
CIE-LCHlch(8.91, 44.91, 306.27°)
OKLaboklab(22.66% 0.026 -0.1043)
OKLCHoklch(22.66% 0.108 284)
XYZxyz(1.8271, 0.9904, 6.7501)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C4B #3D4B0C
analogous
#0C1E4B #1A0C4B #3A0C4B
triadic
#1A0C4B #4B1A0C #0C4B1A
tetradic
#1A0C4B #4B0C1E #3D4B0C #0C4B3A
square
#1A0C4B #4B0C1E #3D4B0C #0C4B3A
split-complementary
#1A0C4B #4B3A0C #1E4B0C
monochromatic
#09041A #09041A #1A0C4B #2C1480 #3F1DB5

Accessibility & contrast

On white

17.53
#1A0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0C4B
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C4B#FFFFFF#000000##FFFFFF
##1A0C4B1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1a0c4b;
/* rgb */ color: rgb(26, 12, 75);
/* oklch */ color: oklch(22.7% 0.108 284.0);
Tailwind
colors: {
  custom: {
    50: '#5e4d7e',
    500: '#1a0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c4b;
$custom-light: #5e4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c4b",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 253.333,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22659,
    "c": 0.10752,
    "h": 284
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#1A0C4B
secondary
#73872C
accent
#EF39C7
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1A0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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