#2E196F#2E196F

#2E196F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.138 H 286.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2E196F
RGBrgb(46, 25, 111)
HSLhsl(255, 63%, 27%)
HSVhsv(255, 77%, 44%)
CMYKcmyk(58.6%, 77.5%, 0%, 56.5%)
CIE-LABlab(17.57, 34.05, -46.04)
CIE-LCHlch(17.57, 57.27, 306.49°)
OKLaboklab(30.45% 0.0382 -0.1325)
OKLCHoklch(30.45% 0.138 286.1)
XYZxyz(4.3427, 2.4236, 15.2748)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E196F #5A6F19
analogous
#192F6F #2E196F #59196F
triadic
#2E196F #6F2E19 #196F2E
tetradic
#2E196F #6F192F #5A6F19 #196F59
square
#2E196F #6F192F #5A6F19 #196F59
split-complementary
#2E196F #6F5919 #2F6F19
monochromatic
#0A0619 #190E3D #2E196F #4324A1 #5932D1

Accessibility & contrast

On white

14.14
#2E196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E196F
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E196F#FFFFFF#000000##FFFFFF
##2E196F1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#103142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e196f;
/* rgb */ color: rgb(46, 25, 111);
/* oklch */ color: oklch(30.4% 0.138 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5899',
    500: '#2e196f',
    950: '#000000',
  },
}
SCSS
$custom: #2e196f;
$custom-light: #6f5899;
$custom-dark: #000000;
JSON
{
  "hex": "#2e196f",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 254.651,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30449,
    "c": 0.13793,
    "h": 286.1
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#2E196F
secondary
#8CA43F
accent
#E642BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E196F

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

Preview Lab → · Contrast checker → · Palette generator →

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