#2E198A#2E198A

#2E198A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.171 H 280.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2E198A
RGBrgb(46, 25, 138)
HSLhsl(251, 69%, 32%)
HSVhsv(251, 82%, 54%)
CMYKcmyk(66.7%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.48, 42.50, -58.45)
CIE-LCHlch(20.48, 72.27, 306.02°)
OKLaboklab(33.36% 0.0303 -0.1687)
OKLCHoklch(33.36% 0.171 280.2)
XYZxyz(6.0603, 3.1106, 24.3209)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E198A #758A19
analogous
#193D8A #2E198A #66198A
triadic
#2E198A #8A2E19 #198A2E
tetradic
#2E198A #8A193D #758A19 #198A66
square
#2E198A #8A193D #758A19 #198A66
split-complementary
#2E198A #8A6619 #3D8A19
monochromatic
#0B0622 #1D1056 #2E198A #3F22BE #5E41DD

Accessibility & contrast

On white

12.95
#2E198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E198A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E198A#FFFFFF#000000##FFFFFF
##2E198A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e198a;
/* rgb */ color: rgb(46, 25, 138);
/* oklch */ color: oklch(33.4% 0.171 280.2);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2e198a',
    950: '#000000',
  },
}
SCSS
$custom: #2e198a;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e198a",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 251.15,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33357,
    "c": 0.17143,
    "h": 280.2
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#2E198A
secondary
#A6BD42
accent
#EC3CCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E198A

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

Preview Lab → · Contrast checker → · Palette generator →

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