#2A1D65#2A1D65

#2A1D65 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.120 H 284.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1D65
RGBrgb(42, 29, 101)
HSLhsl(251, 55%, 25%)
HSVhsv(251, 71%, 40%)
CMYKcmyk(58.4%, 71.3%, 0%, 60.4%)
CIE-LABlab(17.04, 27.70, -40.39)
CIE-LCHlch(17.04, 48.98, 304.44°)
OKLaboklab(29.67% 0.0304 -0.1161)
OKLCHoklch(29.67% 0.12 284.7)
XYZxyz(3.7425, 2.3103, 12.5581)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D65 #58651D
analogous
#1D3465 #2A1D65 #4E1D65
triadic
#2A1D65 #652A1D #1D652A
tetradic
#2A1D65 #651D34 #58651D #1D654E
square
#2A1D65 #651D34 #58651D #1D654E
split-complementary
#2A1D65 #654E1D #34651D
monochromatic
#0A0718 #160F35 #2A1D65 #3E2B95 #5238C4

Accessibility & contrast

On white

14.36
#2A1D65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1D65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D65
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D65#FFFFFF#000000##FFFFFF
##2A1D651.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#0F2F3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1d65;
/* rgb */ color: rgb(42, 29, 101);
/* oklch */ color: oklch(29.7% 0.120 284.7);
Tailwind
colors: {
  custom: {
    50: '#6b5a92',
    500: '#2a1d65',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d65;
$custom-light: #6b5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d65",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 101
  },
  "hsl": {
    "h": 250.833,
    "s": 55.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2967,
    "c": 0.12002,
    "h": 284.7
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#2A1D65
secondary
#8A9A44
accent
#DF49C4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A1D65

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

Preview Lab → · Contrast checker → · Palette generator →

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