#2E198D#2E198D

#2E198D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.175 H 279.7°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2E198D
RGBrgb(46, 25, 141)
HSLhsl(251, 70%, 33%)
HSVhsv(251, 82%, 55%)
CMYKcmyk(67.4%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.82, 43.42, -59.76)
CIE-LCHlch(20.82, 73.87, 306.00°)
OKLaboklab(33.69% 0.0294 -0.1725)
OKLCHoklch(33.69% 0.175 279.7)
XYZxyz(6.2805, 3.1987, 25.4806)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E198D #788D19
analogous
#193E8D #2E198D #68198D
triadic
#2E198D #8D2E19 #198D2E
tetradic
#2E198D #8D193E #788D19 #198D68
square
#2E198D #8D193E #788D19 #198D68
split-complementary
#2E198D #8D6819 #3E8D19
monochromatic
#0C0725 #1D1059 #2E198D #3F22C1 #5F43DE

Accessibility & contrast

On white

12.81
#2E198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E198D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E198D#FFFFFF#000000##FFFFFF
##2E198D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e198d;
/* rgb */ color: rgb(46, 25, 141);
/* oklch */ color: oklch(33.7% 0.175 279.7);
Tailwind
colors: {
  custom: {
    50: '#755ab0',
    500: '#2e198d',
    950: '#000000',
  },
}
SCSS
$custom: #2e198d;
$custom-light: #755ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e198d",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 250.862,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.17503,
    "h": 279.7
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E198D

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

Preview Lab → · Contrast checker → · Palette generator →

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