#2E1762#2E1762

#2E1762 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.123 H 290.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1762
RGBrgb(46, 23, 98)
HSLhsl(258, 62%, 24%)
HSVhsv(258, 77%, 38%)
CMYKcmyk(53.1%, 76.5%, 0%, 61.6%)
CIE-LABlab(15.88, 31.09, -40.29)
CIE-LCHlch(15.88, 50.89, 307.65°)
OKLaboklab(28.86% 0.0434 -0.1156)
OKLCHoklch(28.86% 0.124 290.6)
XYZxyz(3.6371, 2.0753, 11.7618)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1762 #4B6217
analogous
#172562 #2E1762 #531762
triadic
#2E1762 #622E17 #17622E
tetradic
#2E1762 #621725 #4B6217 #176253
square
#2E1762 #621725 #4B6217 #176253
split-complementary
#2E1762 #625317 #256217
monochromatic
#0C0619 #170B30 #2E1762 #452394 #5D2EC5

Accessibility & contrast

On white

14.84
#2E1762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1762
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1762#FFFFFF#000000##FFFFFF
##2E17621.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#1C2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1762;
/* rgb */ color: rgb(46, 23, 98);
/* oklch */ color: oklch(28.9% 0.123 290.6);
Tailwind
colors: {
  custom: {
    50: '#6d568f',
    500: '#2e1762',
    950: '#000000',
  },
}
SCSS
$custom: #2e1762;
$custom-light: #6d568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1762",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 258.4,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28857,
    "c": 0.1235,
    "h": 290.6
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#2E1762
secondary
#7C993C
accent
#E543B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1762

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

Preview Lab → · Contrast checker → · Palette generator →

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