#2E197B#2E197B

#2E197B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.153 H 283.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2E197B
RGBrgb(46, 25, 123)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(62.6%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.82, 37.84, -51.70)
CIE-LCHlch(18.82, 64.07, 306.20°)
OKLaboklab(31.71% 0.0349 -0.1491)
OKLCHoklch(31.71% 0.153 283.2)
XYZxyz(5.0484, 2.7058, 18.9913)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197B #667B19
analogous
#19357B #2E197B #5F197B
triadic
#2E197B #7B2E19 #197B2E
tetradic
#2E197B #7B1935 #667B19 #197B5F
square
#2E197B #7B1935 #667B19 #197B5F
split-complementary
#2E197B #7B5F19 #357B19
monochromatic
#0A0519 #1B0F48 #2E197B #4123AE #5A38D7

Accessibility & contrast

On white

13.63
#2E197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E197B
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197B#FFFFFF#000000##FFFFFF
##2E197B1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e197b;
/* rgb */ color: rgb(46, 25, 123);
/* oklch */ color: oklch(31.7% 0.153 283.2);
Tailwind
colors: {
  custom: {
    50: '#7259a2',
    500: '#2e197b',
    950: '#000000',
  },
}
SCSS
$custom: #2e197b;
$custom-light: #7259a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197b",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 252.857,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3171,
    "c": 0.15309,
    "h": 283.2
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#2E197B
secondary
#98AF40
accent
#E93FC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E197B

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

Preview Lab → · Contrast checker → · Palette generator →

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