#2E197D#2E197D

#2E197D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.156 H 282.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2E197D
RGBrgb(46, 25, 125)
HSLhsl(253, 67%, 29%)
HSVhsv(253, 80%, 49%)
CMYKcmyk(63.2%, 80%, 0%, 51%)
CIE-LABlab(19.04, 38.47, -52.62)
CIE-LCHlch(19.04, 65.18, 306.17°)
OKLaboklab(31.93% 0.0343 -0.1517)
OKLCHoklch(31.93% 0.156 282.7)
XYZxyz(5.1749, 2.7564, 19.6574)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197D #687D19
analogous
#19367D #2E197D #60197D
triadic
#2E197D #7D2E19 #197D2E
tetradic
#2E197D #7D1936 #687D19 #197D60
square
#2E197D #7D1936 #687D19 #197D60
split-complementary
#2E197D #7D6019 #367D19
monochromatic
#09051A #1B0F4A #2E197D #4123B0 #5A39D7

Accessibility & contrast

On white

13.54
#2E197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E197D
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197D#FFFFFF#000000##FFFFFF
##2E197D1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e197d;
/* rgb */ color: rgb(46, 25, 125);
/* oklch */ color: oklch(31.9% 0.156 282.7);
Tailwind
colors: {
  custom: {
    50: '#7259a4',
    500: '#2e197d',
    950: '#000000',
  },
}
SCSS
$custom: #2e197d;
$custom-light: #7259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197d",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 252.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31926,
    "c": 0.15557,
    "h": 282.7
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E197D

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

Preview Lab → · Contrast checker → · Palette generator →

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