#2E197C#2E197C

#2E197C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.154 H 282.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2E197C
RGBrgb(46, 25, 124)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 80%, 49%)
CMYKcmyk(62.9%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.93, 38.16, -52.16)
CIE-LCHlch(18.93, 64.63, 306.18°)
OKLaboklab(31.82% 0.0346 -0.1504)
OKLCHoklch(31.82% 0.154 282.9)
XYZxyz(5.1113, 2.7310, 19.3227)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E197C #677C19
analogous
#19367C #2E197C #60197C
triadic
#2E197C #7C2E19 #197C2E
tetradic
#2E197C #7C1936 #677C19 #197C60
square
#2E197C #7C1936 #677C19 #197C60
split-complementary
#2E197C #7C6019 #367C19
monochromatic
#090519 #1B0F49 #2E197C #4123AF #5A38D7

Accessibility & contrast

On white

13.58
#2E197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E197C
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E197C#FFFFFF#000000##FFFFFF
##2E197C1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e197c;
/* rgb */ color: rgb(46, 25, 124);
/* oklch */ color: oklch(31.8% 0.154 282.9);
Tailwind
colors: {
  custom: {
    50: '#7259a3',
    500: '#2e197c',
    950: '#000000',
  },
}
SCSS
$custom: #2e197c;
$custom-light: #7259a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e197c",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 252.727,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31818,
    "c": 0.15433,
    "h": 282.9
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#2E197C
secondary
#99B040
accent
#E93EC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E197C

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

Preview Lab → · Contrast checker → · Palette generator →

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