#2E197F#2E197F

#2E197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 282.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2E197F
RGBrgb(46, 25, 127)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(63.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(19.26, 39.09, -53.53)
CIE-LCHlch(19.26, 66.29, 306.14°)
OKLaboklab(32.14% 0.0337 -0.1544)
OKLCHoklch(32.14% 0.158 282.3)
XYZxyz(5.3039, 2.8080, 20.3371)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197F #6A7F19
analogous
#19377F #2E197F #61197F
triadic
#2E197F #7F2E19 #197F2E
tetradic
#2E197F #7F1937 #6A7F19 #197F61
square
#2E197F #7F1937 #6A7F19 #197F61
split-complementary
#2E197F #7F6119 #377F19
monochromatic
#09051A #1B0F4C #2E197F #4123B2 #5B3AD8

Accessibility & contrast

On white

13.45
#2E197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E197F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197F#FFFFFF#000000##FFFFFF
##2E197F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e197f;
/* rgb */ color: rgb(46, 25, 127);
/* oklch */ color: oklch(32.1% 0.158 282.3);
Tailwind
colors: {
  custom: {
    50: '#7259a5',
    500: '#2e197f',
    950: '#000000',
  },
}
SCSS
$custom: #2e197f;
$custom-light: #7259a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197f",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 252.353,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32142,
    "c": 0.15804,
    "h": 282.3
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#2E197F
secondary
#9CB341
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E197F

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

Preview Lab → · Contrast checker → · Palette generator →

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