#2E197E#2E197E

#2E197E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.157 H 282.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2E197E
RGBrgb(46, 25, 126)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 49%)
CMYKcmyk(63.5%, 80.2%, 0%, 50.6%)
CIE-LABlab(19.15, 38.78, -53.08)
CIE-LCHlch(19.15, 65.74, 306.15°)
OKLaboklab(32.03% 0.034 -0.1531)
OKLCHoklch(32.03% 0.157 282.5)
XYZxyz(5.2391, 2.7821, 19.9955)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197E #697E19
analogous
#19377E #2E197E #60197E
triadic
#2E197E #7E2E19 #197E2E
tetradic
#2E197E #7E1937 #697E19 #197E60
square
#2E197E #7E1937 #697E19 #197E60
split-complementary
#2E197E #7E6019 #377E19
monochromatic
#09051A #1B0F4B #2E197E #4123B1 #5A3AD8

Accessibility & contrast

On white

13.49
#2E197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E197E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197E#FFFFFF#000000##FFFFFF
##2E197E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e197e;
/* rgb */ color: rgb(46, 25, 126);
/* oklch */ color: oklch(32.0% 0.157 282.5);
Tailwind
colors: {
  custom: {
    50: '#7259a4',
    500: '#2e197e',
    950: '#000000',
  },
}
SCSS
$custom: #2e197e;
$custom-light: #7259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197e",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 252.475,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32034,
    "c": 0.15681,
    "h": 282.5
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#2E197E
secondary
#9BB241
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E197E

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

Preview Lab → · Contrast checker → · Palette generator →

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