#2E1994#2E1994

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

Color values

HEX#2E1994
RGBrgb(46, 25, 148)
HSLhsl(250, 71%, 34%)
HSVhsv(250, 83%, 58%)
CMYKcmyk(68.9%, 83.1%, 0%, 42%)
CIE-LABlab(21.63, 45.55, -62.77)
CIE-LCHlch(21.63, 77.56, 305.97°)
OKLaboklab(34.49% 0.0272 -0.1813)
OKLCHoklch(34.49% 0.183 278.5)
XYZxyz(6.8179, 3.4136, 28.3108)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1994 #7F9419
analogous
#194294 #2E1994 #6C1994
triadic
#2E1994 #942E19 #19942E
tetradic
#2E1994 #941942 #7F9419 #19946C
square
#2E1994 #941942 #7F9419 #19946C
split-complementary
#2E1994 #946C19 #429419
monochromatic
#0D072B #1E1060 #2E1994 #3E22C8 #6147E0

Accessibility & contrast

On white

12.48
#2E1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1994
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1994#FFFFFF#000000##FFFFFF
##2E19941.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1994;
/* rgb */ color: rgb(46, 25, 148);
/* oklch */ color: oklch(34.5% 0.183 278.5);
Tailwind
colors: {
  custom: {
    50: '#775bb5',
    500: '#2e1994',
    950: '#000000',
  },
}
SCSS
$custom: #2e1994;
$custom-light: #775bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1994",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 250.244,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34489,
    "c": 0.18333,
    "h": 278.5
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#2E1994
secondary
#ADC147
accent
#EE3ACF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1994

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

Preview Lab → · Contrast checker → · Palette generator →

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