#2E198B#2E198B

#2E198B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.173 H 280.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2E198B
RGBrgb(46, 25, 139)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 82%, 55%)
CMYKcmyk(66.9%, 82%, 0%, 45.5%)
CIE-LABlab(20.59, 42.81, -58.89)
CIE-LCHlch(20.59, 72.81, 306.02°)
OKLaboklab(33.47% 0.03 -0.17)
OKLCHoklch(33.47% 0.173 280)
XYZxyz(6.1331, 3.1397, 24.7039)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E198B #768B19
analogous
#193D8B #2E198B #67198B
triadic
#2E198B #8B2E19 #198B2E
tetradic
#2E198B #8B193D #768B19 #198B67
square
#2E198B #8B193D #768B19 #198B67
split-complementary
#2E198B #8B6719 #3D8B19
monochromatic
#0C0623 #1D1057 #2E198B #3F22BF #5E41DD

Accessibility & contrast

On white

12.90
#2E198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E198B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E198B#FFFFFF#000000##FFFFFF
##2E198B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e198b;
/* rgb */ color: rgb(46, 25, 139);
/* oklch */ color: oklch(33.5% 0.173 280.0);
Tailwind
colors: {
  custom: {
    50: '#755aae',
    500: '#2e198b',
    950: '#000000',
  },
}
SCSS
$custom: #2e198b;
$custom-light: #755aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e198b",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 251.053,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33469,
    "c": 0.17263,
    "h": 280
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#2E198B
secondary
#A7BE42
accent
#EC3BCC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E198B

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

Preview Lab → · Contrast checker → · Palette generator →

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