#2A1360#2A1360

#2A1360 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.126 H 289.0°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2A1360
RGBrgb(42, 19, 96)
HSLhsl(258, 67%, 23%)
HSVhsv(258, 80%, 38%)
CMYKcmyk(56.3%, 80.2%, 0%, 62.4%)
CIE-LABlab(14.41, 31.99, -41.38)
CIE-LCHlch(14.41, 52.30, 307.71°)
OKLaboklab(27.65% 0.041 -0.1189)
OKLCHoklch(27.65% 0.126 289)
XYZxyz(3.2984, 1.8024, 11.2382)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1360 #496013
analogous
#132260 #2A1360 #501360
triadic
#2A1360 #602A13 #13602A
tetradic
#2A1360 #601322 #496013 #136050
square
#2A1360 #601322 #496013 #136050
split-complementary
#2A1360 #605013 #226013
monochromatic
#0B051A #14092D #2A1360 #401D93 #5727C6

Accessibility & contrast

On white

15.43
#2A1360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1360 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1360
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1360#FFFFFF#000000##FFFFFF
##2A13601.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#152838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1360;
/* rgb */ color: rgb(42, 19, 96);
/* oklch */ color: oklch(27.7% 0.126 289.0);
Tailwind
colors: {
  custom: {
    50: '#6b538e',
    500: '#2a1360',
    950: '#000000',
  },
}
SCSS
$custom: #2a1360;
$custom-light: #6b538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1360",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 257.922,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27652,
    "c": 0.12582,
    "h": 289
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#2A1360
secondary
#7B9837
accent
#EA3EB7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1360

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

Preview Lab → · Contrast checker → · Palette generator →

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