#2A1372#2A1372

#2A1372 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.148 H 283.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2A1372
RGBrgb(42, 19, 114)
HSLhsl(255, 71%, 26%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(63.2%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.37, 37.59, -49.98)
CIE-LCHlch(16.37, 62.54, 306.94°)
OKLaboklab(29.6% 0.0352 -0.1441)
OKLCHoklch(29.6% 0.148 283.7)
XYZxyz(4.2240, 2.1726, 16.1131)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1372 #5B7213
analogous
#132B72 #2A1372 #591372
triadic
#2A1372 #722A13 #13722A
tetradic
#2A1372 #72132B #5B7213 #137259
square
#2A1372 #72132B #5B7213 #137259
split-complementary
#2A1372 #725913 #2B7213
monochromatic
#0A041A #170A3E #2A1372 #3D1CA6 #5125DB

Accessibility & contrast

On white

14.64
#2A1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1372
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1372#FFFFFF#000000##FFFFFF
##2A13721.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1372;
/* rgb */ color: rgb(42, 19, 114);
/* oklch */ color: oklch(29.6% 0.148 283.7);
Tailwind
colors: {
  custom: {
    50: '#6e559c',
    500: '#2a1372',
    950: '#000000',
  },
}
SCSS
$custom: #2a1372;
$custom-light: #6e559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1372",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 254.526,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29603,
    "c": 0.14833,
    "h": 283.7
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#2A1372
secondary
#8DA938
accent
#EE3AC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1372

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

Preview Lab → · Contrast checker → · Palette generator →

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