#2A1C4E#2A1C4E

#2A1C4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.088 H 292.5°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1C4E
RGBrgb(42, 28, 78)
HSLhsl(257, 47%, 21%)
HSVhsv(257, 64%, 31%)
CMYKcmyk(46.2%, 64.1%, 0%, 69.4%)
CIE-LABlab(14.80, 20.62, -28.59)
CIE-LCHlch(14.80, 35.25, 305.80°)
OKLaboklab(27.42% 0.0338 -0.0814)
OKLCHoklch(27.42% 0.088 292.5)
XYZxyz(2.7449, 1.8727, 7.4231)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C4E #404E1C
analogous
#1C274E #2A1C4E #431C4E
triadic
#2A1C4E #4E2A1C #1C4E2A
tetradic
#2A1C4E #4E1C27 #404E1C #1C4E43
square
#2A1C4E #4E1C27 #404E1C #1C4E43
split-complementary
#2A1C4E #4E431C #274E1C
monochromatic
#0C0817 #120C21 #2A1C4E #422C7B #5A3CA8

Accessibility & contrast

On white

15.28
#2A1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C4E
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C4E#FFFFFF#000000##FFFFFF
##2A1C4E1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#04244D
Tritanopia (blue-blind)
#202731
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1c4e;
/* rgb */ color: rgb(42, 28, 78);
/* oklch */ color: oklch(27.4% 0.088 292.5);
Tailwind
colors: {
  custom: {
    50: '#675880',
    500: '#2a1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c4e;
$custom-light: #675880;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c4e",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 256.8,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27423,
    "c": 0.08815,
    "h": 292.5
  },
  "luminance": 0.01873
}

Semantic roles & 50–950 ramp

primary
#2A1C4E
secondary
#718442
accent
#D751B1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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