#2A1362#2A1362

#2A1362 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.128 H 288.3°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2A1362
RGBrgb(42, 19, 98)
HSLhsl(257, 68%, 23%)
HSVhsv(257, 81%, 38%)
CMYKcmyk(57.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.62, 32.62, -42.37)
CIE-LCHlch(14.62, 53.47, 307.59°)
OKLaboklab(27.86% 0.0404 -0.1218)
OKLCHoklch(27.86% 0.128 288.3)
XYZxyz(3.3917, 1.8397, 11.7293)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1362 #4B6213
analogous
#132462 #2A1362 #511362
triadic
#2A1362 #622A13 #13622A
tetradic
#2A1362 #621324 #4B6213 #136251
square
#2A1362 #621324 #4B6213 #136251
split-complementary
#2A1362 #625113 #246213
monochromatic
#0B051A #14092F #2A1362 #401D95 #5627C9

Accessibility & contrast

On white

15.35
#2A1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1362
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1362#FFFFFF#000000##FFFFFF
##2A13621.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#13293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1362;
/* rgb */ color: rgb(42, 19, 98);
/* oklch */ color: oklch(27.9% 0.128 288.3);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2a1362',
    950: '#000000',
  },
}
SCSS
$custom: #2a1362;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1362",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 257.468,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27861,
    "c": 0.12838,
    "h": 288.3
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#2A1362
secondary
#7D9A37
accent
#EA3DB8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1362

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

Preview Lab → · Contrast checker → · Palette generator →

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