#2A1E4E#2A1E4E

#2A1E4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.085 H 291.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1E4E
RGBrgb(42, 30, 78)
HSLhsl(255, 44%, 21%)
HSVhsv(255, 62%, 31%)
CMYKcmyk(46.2%, 61.5%, 0%, 69.4%)
CIE-LABlab(15.33, 19.25, -27.74)
CIE-LCHlch(15.33, 33.77, 304.76°)
OKLaboklab(27.81% 0.031 -0.0789)
OKLCHoklch(27.81% 0.085 291.4)
XYZxyz(2.7939, 1.9708, 7.4394)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E4E #424E1E
analogous
#1E2A4E #2A1E4E #421E4E
triadic
#2A1E4E #4E2A1E #1E4E2A
tetradic
#2A1E4E #4E1E2A #424E1E #1E4E42
square
#2A1E4E #4E1E2A #424E1E #1E4E42
split-complementary
#2A1E4E #4E421E #2A4E1E
monochromatic
#0C0916 #120D22 #2A1E4E #422F7A #5A40A6

Accessibility & contrast

On white

15.06
#2A1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E4E
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E4E#FFFFFF#000000##FFFFFF
##2A1E4E1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#08254D
Tritanopia (blue-blind)
#202832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1e4e;
/* rgb */ color: rgb(42, 30, 78);
/* oklch */ color: oklch(27.8% 0.085 291.4);
Tailwind
colors: {
  custom: {
    50: '#665a80',
    500: '#2a1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e4e;
$custom-light: #665a80;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e4e",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 255,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27812,
    "c": 0.08478,
    "h": 291.4
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#2A1E4E
secondary
#738345
accent
#D454B4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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