#1A0C4E#1A0C4E

#1A0C4E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.112 H 283.0°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#1A0C4E
RGBrgb(26, 12, 78)
HSLhsl(253, 73%, 18%)
HSVhsv(253, 85%, 31%)
CMYKcmyk(66.7%, 84.6%, 0%, 69.4%)
CIE-LABlab(9.26, 27.58, -37.71)
CIE-LCHlch(9.26, 46.72, 306.18°)
OKLaboklab(23.01% 0.025 -0.1087)
OKLCHoklch(23.01% 0.112 283)
XYZxyz(1.9322, 1.0325, 7.3037)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0C4E #404E0C
analogous
#0C1F4E #1A0C4E #3B0C4E
triadic
#1A0C4E #4E1A0C #0C4E1A
tetradic
#1A0C4E #4E0C1F #404E0C #0C4E3B
square
#1A0C4E #4E0C1F #404E0C #0C4E3B
split-complementary
#1A0C4E #4E3B0C #1F4E0C
monochromatic
#09041B #09041B #1A0C4E #2C1483 #3D1CB8

Accessibility & contrast

On white

17.40
#1A0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0C4E
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0C4E#FFFFFF#000000##FFFFFF
##1A0C4E1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#001F2D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1a0c4e;
/* rgb */ color: rgb(26, 12, 78);
/* oklch */ color: oklch(23.0% 0.112 283.0);
Tailwind
colors: {
  custom: {
    50: '#5f4d80',
    500: '#1a0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #1a0c4e;
$custom-light: #5f4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0c4e",
  "rgb": {
    "r": 26,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 252.727,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23007,
    "c": 0.11158,
    "h": 283
  },
  "luminance": 0.01033
}

Semantic roles & 50–950 ramp

primary
#1A0C4E
secondary
#768A2C
accent
#F038C9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1A0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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