#2E189B#2E189B

#2E189B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.192 H 277.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2E189B
RGBrgb(46, 24, 155)
HSLhsl(250, 73%, 35%)
HSVhsv(250, 85%, 61%)
CMYKcmyk(70.3%, 84.5%, 0%, 39.2%)
CIE-LABlab(22.30, 48.10, -65.97)
CIE-LCHlch(22.30, 81.64, 306.09°)
OKLaboklab(35.19% 0.0253 -0.1906)
OKLCHoklch(35.19% 0.192 277.6)
XYZxyz(7.3678, 3.6000, 31.3106)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E189B #859B18
analogous
#18449B #2E189B #6F189B
triadic
#2E189B #9B2E18 #189B2E
tetradic
#2E189B #9B1844 #859B18 #189B6F
square
#2E189B #9B1844 #859B18 #189B6F
split-complementary
#2E189B #9B6F18 #449B18
monochromatic
#0F0831 #1E1066 #2E189B #3E20D0 #644AE3

Accessibility & contrast

On white

12.21
#2E189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E189B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E189B#FFFFFF#000000##FFFFFF
##2E189B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e189b;
/* rgb */ color: rgb(46, 24, 155);
/* oklch */ color: oklch(35.2% 0.192 277.6);
Tailwind
colors: {
  custom: {
    50: '#795bba',
    500: '#2e189b',
    950: '#000000',
  },
}
SCSS
$custom: #2e189b;
$custom-light: #795bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e189b",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 250.076,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35192,
    "c": 0.19225,
    "h": 277.6
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#2E189B
secondary
#B0C54A
accent
#F038D1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E189B

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

Preview Lab → · Contrast checker → · Palette generator →

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