#2E196D#2E196D

#2E196D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 286.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2E196D
RGBrgb(46, 25, 109)
HSLhsl(255, 63%, 26%)
HSVhsv(255, 77%, 43%)
CMYKcmyk(57.8%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.37, 33.42, -45.07)
CIE-LCHlch(17.37, 56.11, 306.55°)
OKLaboklab(30.24% 0.0388 -0.1297)
OKLCHoklch(30.24% 0.135 286.6)
XYZxyz(4.2338, 2.3800, 14.7013)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E196D #586D19
analogous
#192E6D #2E196D #58196D
triadic
#2E196D #6D2E19 #196D2E
tetradic
#2E196D #6D192E #586D19 #196D58
square
#2E196D #6D192E #586D19 #196D58
split-complementary
#2E196D #6D5819 #2E6D19
monochromatic
#0B0619 #190E3B #2E196D #43249F #5831D0

Accessibility & contrast

On white

14.23
#2E196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E196D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E196D#FFFFFF#000000##FFFFFF
##2E196D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#123041
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e196d;
/* rgb */ color: rgb(46, 25, 109);
/* oklch */ color: oklch(30.2% 0.135 286.6);
Tailwind
colors: {
  custom: {
    50: '#6f5898',
    500: '#2e196d',
    950: '#000000',
  },
}
SCSS
$custom: #2e196d;
$custom-light: #6f5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2e196d",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 255,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30244,
    "c": 0.13535,
    "h": 286.6
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2E196D
secondary
#8AA23F
accent
#E642BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E196D

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

Preview Lab → · Contrast checker → · Palette generator →

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