#2E197A#2E197A

#2E197A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.152 H 283.4°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2E197A
RGBrgb(46, 25, 122)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(62.3%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.72, 37.53, -51.24)
CIE-LCHlch(18.72, 63.51, 306.22°)
OKLaboklab(31.6% 0.0352 -0.1477)
OKLCHoklch(31.6% 0.152 283.4)
XYZxyz(4.9861, 2.6809, 18.6633)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197A #657A19
analogous
#19357A #2E197A #5F197A
triadic
#2E197A #7A2E19 #197A2E
tetradic
#2E197A #7A1935 #657A19 #197A5F
square
#2E197A #7A1935 #657A19 #197A5F
split-complementary
#2E197A #7A5F19 #357A19
monochromatic
#0A0519 #1B0F47 #2E197A #4123AD #5A37D6

Accessibility & contrast

On white

13.67
#2E197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E197A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197A#FFFFFF#000000##FFFFFF
##2E197A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e197a;
/* rgb */ color: rgb(46, 25, 122);
/* oklch */ color: oklch(31.6% 0.152 283.4);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2e197a',
    950: '#000000',
  },
}
SCSS
$custom: #2e197a;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197a",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 252.99,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31603,
    "c": 0.15184,
    "h": 283.4
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#2E197A
secondary
#97AF40
accent
#E93FC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E197A

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

Preview Lab → · Contrast checker → · Palette generator →

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