#2E196A#2E196A

#2E196A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.131 H 287.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2E196A
RGBrgb(46, 25, 106)
HSLhsl(256, 62%, 26%)
HSVhsv(256, 76%, 42%)
CMYKcmyk(56.6%, 76.4%, 0%, 58.4%)
CIE-LABlab(17.07, 32.47, -43.61)
CIE-LCHlch(17.07, 54.37, 306.67°)
OKLaboklab(29.94% 0.0395 -0.1254)
OKLCHoklch(29.94% 0.131 287.5)
XYZxyz(4.0751, 2.3165, 13.8653)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E196A #556A19
analogous
#192C6A #2E196A #56196A
triadic
#2E196A #6A2E19 #196A2E
tetradic
#2E196A #6A192C #556A19 #196A56
square
#2E196A #6A192C #556A19 #196A56
split-complementary
#2E196A #6A5619 #2C6A19
monochromatic
#0B0619 #190D38 #2E196A #43259C #5930CD

Accessibility & contrast

On white

14.35
#2E196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E196A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E196A#FFFFFF#000000##FFFFFF
##2E196A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#162F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e196a;
/* rgb */ color: rgb(46, 25, 106);
/* oklch */ color: oklch(29.9% 0.131 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5895',
    500: '#2e196a',
    950: '#000000',
  },
}
SCSS
$custom: #2e196a;
$custom-light: #6e5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2e196a",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 255.556,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29941,
    "c": 0.13146,
    "h": 287.5
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#2E196A
secondary
#87A03F
accent
#E543BB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E196A

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

Preview Lab → · Contrast checker → · Palette generator →

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