#2A1366#2A1366

#2A1366 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.133 H 287.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2A1366
RGBrgb(42, 19, 102)
HSLhsl(257, 69%, 24%)
HSVhsv(257, 81%, 40%)
CMYKcmyk(58.8%, 81.4%, 0%, 60%)
CIE-LABlab(15.05, 33.87, -44.32)
CIE-LCHlch(15.05, 55.78, 307.39°)
OKLaboklab(28.29% 0.0392 -0.1275)
OKLCHoklch(28.29% 0.133 287.1)
XYZxyz(3.5853, 1.9171, 12.7489)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1366 #4F6613
analogous
#132566 #2A1366 #531366
triadic
#2A1366 #662A13 #13662A
tetradic
#2A1366 #661325 #4F6613 #136653
square
#2A1366 #661325 #4F6613 #136653
split-complementary
#2A1366 #665313 #256613
monochromatic
#0B051A #150932 #2A1366 #3F1D9A #5426CD

Accessibility & contrast

On white

15.18
#2A1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1366
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1366#FFFFFF#000000##FFFFFF
##2A13661.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#0F2B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1366;
/* rgb */ color: rgb(42, 19, 102);
/* oklch */ color: oklch(28.3% 0.133 287.1);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2a1366',
    950: '#000000',
  },
}
SCSS
$custom: #2a1366;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1366",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 256.627,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.13343,
    "h": 287.1
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#2A1366
secondary
#819D37
accent
#EB3CBB
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1366

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1366 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva