#2E1A61#2E1A61

#2E1A61 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.118 H 290.0°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2E1A61
RGBrgb(46, 26, 97)
HSLhsl(257, 58%, 24%)
HSVhsv(257, 73%, 38%)
CMYKcmyk(52.6%, 73.2%, 0%, 62%)
CIE-LABlab(16.42, 29.01, -38.74)
CIE-LCHlch(16.42, 48.40, 306.82°)
OKLaboklab(29.21% 0.0405 -0.1111)
OKLCHoklch(29.21% 0.118 290)
XYZxyz(3.6532, 2.1825, 11.5357)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A61 #4D611A
analogous
#1A2A61 #2E1A61 #521A61
triadic
#2E1A61 #612E1A #1A612E
tetradic
#2E1A61 #611A2A #4D611A #1A6152
square
#2E1A61 #611A2A #4D611A #1A6152
split-complementary
#2E1A61 #61521A #2A611A
monochromatic
#0B0618 #170D31 #2E1A61 #452791 #5C34C2

Accessibility & contrast

On white

14.62
#2E1A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A61
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A61#FFFFFF#000000##FFFFFF
##2E1A611.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#1D2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1a61;
/* rgb */ color: rgb(46, 26, 97);
/* oklch */ color: oklch(29.2% 0.118 290.0);
Tailwind
colors: {
  custom: {
    50: '#6c588f',
    500: '#2e1a61',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a61;
$custom-light: #6c588f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a61",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 256.901,
    "s": 57.724,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29213,
    "c": 0.11826,
    "h": 290
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#2E1A61
secondary
#7E9740
accent
#E147B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1A61

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

Preview Lab → · Contrast checker → · Palette generator →

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