#2E196B#2E196B

#2E196B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.133 H 287.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2E196B
RGBrgb(46, 25, 107)
HSLhsl(255, 62%, 26%)
HSVhsv(255, 77%, 42%)
CMYKcmyk(57%, 76.6%, 0%, 58%)
CIE-LABlab(17.17, 32.78, -44.10)
CIE-LCHlch(17.17, 54.95, 306.63°)
OKLaboklab(30.04% 0.0393 -0.1268)
OKLCHoklch(30.04% 0.133 287.2)
XYZxyz(4.1274, 2.3374, 14.1408)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E196B #566B19
analogous
#192D6B #2E196B #57196B
triadic
#2E196B #6B2E19 #196B2E
tetradic
#2E196B #6B192D #566B19 #196B57
square
#2E196B #6B192D #566B19 #196B57
split-complementary
#2E196B #6B5719 #2D6B19
monochromatic
#0B0619 #190D39 #2E196B #43259D #5930CE

Accessibility & contrast

On white

14.31
#2E196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E196B
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E196B#FFFFFF#000000##FFFFFF
##2E196B1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#152F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e196b;
/* rgb */ color: rgb(46, 25, 107);
/* oklch */ color: oklch(30.0% 0.133 287.2);
Tailwind
colors: {
  custom: {
    50: '#6e5896',
    500: '#2e196b',
    950: '#000000',
  },
}
SCSS
$custom: #2e196b;
$custom-light: #6e5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2e196b",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 255.366,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30042,
    "c": 0.13276,
    "h": 287.2
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#2E196B
secondary
#88A13F
accent
#E543BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E196B

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

Preview Lab → · Contrast checker → · Palette generator →

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