#2E198E#2E198E

#2E198E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.176 H 279.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2E198E
RGBrgb(46, 25, 142)
HSLhsl(251, 70%, 33%)
HSVhsv(251, 82%, 56%)
CMYKcmyk(67.6%, 82.4%, 0%, 44.3%)
CIE-LABlab(20.94, 43.73, -60.19)
CIE-LCHlch(20.94, 74.40, 306.00°)
OKLaboklab(33.81% 0.0291 -0.1738)
OKLCHoklch(33.81% 0.176 279.5)
XYZxyz(6.3553, 3.2286, 25.8742)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E198E #798E19
analogous
#193F8E #2E198E #68198E
triadic
#2E198E #8E2E19 #198E2E
tetradic
#2E198E #8E193F #798E19 #198E68
square
#2E198E #8E193F #798E19 #198E68
split-complementary
#2E198E #8E6819 #3F8E19
monochromatic
#0C0726 #1D105A #2E198E #3F22C2 #5F43DE

Accessibility & contrast

On white

12.76
#2E198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E198E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E198E#FFFFFF#000000##FFFFFF
##2E198E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e198e;
/* rgb */ color: rgb(46, 25, 142);
/* oklch */ color: oklch(33.8% 0.176 279.5);
Tailwind
colors: {
  custom: {
    50: '#765ab0',
    500: '#2e198e',
    950: '#000000',
  },
}
SCSS
$custom: #2e198e;
$custom-light: #765ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e198e",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 250.769,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33807,
    "c": 0.17622,
    "h": 279.5
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#2E198E
secondary
#A9BF44
accent
#ED3BCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E198E

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

Preview Lab → · Contrast checker → · Palette generator →

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