#2E196E#2E196E

#2E196E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.137 H 286.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2E196E
RGBrgb(46, 25, 110)
HSLhsl(255, 63%, 26%)
HSVhsv(255, 77%, 43%)
CMYKcmyk(58.2%, 77.3%, 0%, 56.9%)
CIE-LABlab(17.47, 33.74, -45.56)
CIE-LCHlch(17.47, 56.69, 306.52°)
OKLaboklab(30.35% 0.0385 -0.1311)
OKLCHoklch(30.35% 0.137 286.4)
XYZxyz(4.2880, 2.4017, 14.9864)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E196E #596E19
analogous
#192F6E #2E196E #59196E
triadic
#2E196E #6E2E19 #196E2E
tetradic
#2E196E #6E192F #596E19 #196E59
square
#2E196E #6E192F #596E19 #196E59
split-complementary
#2E196E #6E5919 #2F6E19
monochromatic
#0A0619 #190E3C #2E196E #4324A0 #5831D0

Accessibility & contrast

On white

14.19
#2E196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E196E
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E196E#FFFFFF#000000##FFFFFF
##2E196E1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#113042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e196e;
/* rgb */ color: rgb(46, 25, 110);
/* oklch */ color: oklch(30.3% 0.137 286.4);
Tailwind
colors: {
  custom: {
    50: '#6f5898',
    500: '#2e196e',
    950: '#000000',
  },
}
SCSS
$custom: #2e196e;
$custom-light: #6f5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2e196e",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 254.824,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30346,
    "c": 0.13664,
    "h": 286.4
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E196E

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

Preview Lab → · Contrast checker → · Palette generator →

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