#2E1895#2E1895

#2E1895 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.185 H 278.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2E1895
RGBrgb(46, 24, 149)
HSLhsl(251, 72%, 34%)
HSVhsv(251, 84%, 58%)
CMYKcmyk(69.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.59, 46.31, -63.45)
CIE-LCHlch(21.59, 78.55, 306.12°)
OKLaboklab(34.5% 0.0273 -0.1833)
OKLCHoklch(34.5% 0.185 278.5)
XYZxyz(6.8764, 3.4034, 28.7225)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1895 #7F9518
analogous
#184195 #2E1895 #6D1895
triadic
#2E1895 #952E18 #18952E
tetradic
#2E1895 #951841 #7F9518 #18956D
square
#2E1895 #951841 #7F9518 #18956D
split-complementary
#2E1895 #956D18 #419518
monochromatic
#0D072C #1E1060 #2E1895 #3E20CA #6146E1

Accessibility & contrast

On white

12.49
#2E1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1895
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1895#FFFFFF#000000##FFFFFF
##2E18951.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1895;
/* rgb */ color: rgb(46, 24, 149);
/* oklch */ color: oklch(34.5% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#775ab5',
    500: '#2e1895',
    950: '#000000',
  },
}
SCSS
$custom: #2e1895;
$custom-light: #775ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1895",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 250.56,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.18529,
    "h": 278.5
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#2E1895
secondary
#ADC246
accent
#EF39CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1895

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

Preview Lab → · Contrast checker → · Palette generator →

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