#2E1A5D#2E1A5D

#2E1A5D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.113 H 291.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2E1A5D
RGBrgb(46, 26, 93)
HSLhsl(258, 56%, 23%)
HSVhsv(258, 72%, 36%)
CMYKcmyk(50.5%, 72%, 0%, 63.5%)
CIE-LABlab(16.05, 27.73, -36.68)
CIE-LCHlch(16.05, 45.98, 307.09°)
OKLaboklab(28.84% 0.0412 -0.105)
OKLCHoklch(28.84% 0.113 291.4)
XYZxyz(3.4713, 2.1098, 10.5781)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A5D #495D1A
analogous
#1A275D #2E1A5D #4F1A5D
triadic
#2E1A5D #5D2E1A #1A5D2E
tetradic
#2E1A5D #5D1A27 #495D1A #1A5D4F
square
#2E1A5D #5D1A27 #495D1A #1A5D4F
split-complementary
#2E1A5D #5D4F1A #275D1A
monochromatic
#0C0718 #160D2D #2E1A5D #46278D #5D35BD

Accessibility & contrast

On white

14.77
#2E1A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A5D
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A5D#FFFFFF#000000##FFFFFF
##2E1A5D1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#1F2A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1a5d;
/* rgb */ color: rgb(46, 26, 93);
/* oklch */ color: oklch(28.8% 0.113 291.4);
Tailwind
colors: {
  custom: {
    50: '#6c588b',
    500: '#2e1a5d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a5d;
$custom-light: #6c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a5d",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 257.91,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28838,
    "c": 0.11283,
    "h": 291.4
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#2E1A5D
secondary
#7A9340
accent
#E048B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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