#2A1375#2A1375

#2A1375 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.152 H 283.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1375
RGBrgb(42, 19, 117)
HSLhsl(254, 72%, 27%)
HSVhsv(254, 84%, 46%)
CMYKcmyk(64.1%, 83.8%, 0%, 54.1%)
CIE-LABlab(16.71, 38.51, -51.36)
CIE-LCHlch(16.71, 64.19, 306.87°)
OKLaboklab(29.94% 0.0342 -0.1481)
OKLCHoklch(29.94% 0.152 283)
XYZxyz(4.3976, 2.2420, 17.0272)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1375 #5E7513
analogous
#132D75 #2A1375 #5B1375
triadic
#2A1375 #752A13 #13752A
tetradic
#2A1375 #75132D #5E7513 #13755B
square
#2A1375 #75132D #5E7513 #13755B
split-complementary
#2A1375 #755B13 #2D7513
monochromatic
#09041A #170A40 #2A1375 #3D1CAA #5127DC

Accessibility & contrast

On white

14.50
#2A1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1375
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1375#FFFFFF#000000##FFFFFF
##2A13751.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1375;
/* rgb */ color: rgb(42, 19, 117);
/* oklch */ color: oklch(29.9% 0.152 283.0);
Tailwind
colors: {
  custom: {
    50: '#6f559e',
    500: '#2a1375',
    950: '#000000',
  },
}
SCSS
$custom: #2a1375;
$custom-light: #6f559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1375",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 254.082,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29941,
    "c": 0.152,
    "h": 283
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#2A1375
secondary
#90AB38
accent
#EF39C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1375

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

Preview Lab → · Contrast checker → · Palette generator →

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