#2E1764#2E1764

#2E1764 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 289.9°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1764
RGBrgb(46, 23, 100)
HSLhsl(258, 63%, 24%)
HSVhsv(258, 77%, 39%)
CMYKcmyk(54%, 77%, 0%, 60.8%)
CIE-LABlab(16.07, 31.71, -41.29)
CIE-LCHlch(16.07, 52.06, 307.52°)
OKLaboklab(29.05% 0.0429 -0.1186)
OKLCHoklch(29.05% 0.126 289.9)
XYZxyz(3.7327, 2.1136, 12.2654)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1764 #4D6417
analogous
#172764 #2E1764 #551764
triadic
#2E1764 #642E17 #17642E
tetradic
#2E1764 #641727 #4D6417 #176455
square
#2E1764 #641727 #4D6417 #176455
split-complementary
#2E1764 #645517 #276417
monochromatic
#0B0619 #170C32 #2E1764 #452296 #5C2EC8

Accessibility & contrast

On white

14.76
#2E1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1764
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1764#FFFFFF#000000##FFFFFF
##2E17641.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1B2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1764;
/* rgb */ color: rgb(46, 23, 100);
/* oklch */ color: oklch(29.1% 0.126 289.9);
Tailwind
colors: {
  custom: {
    50: '#6d5691',
    500: '#2e1764',
    950: '#000000',
  },
}
SCSS
$custom: #2e1764;
$custom-light: #6d5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1764",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 257.922,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29055,
    "c": 0.1261,
    "h": 289.9
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#2E1764
secondary
#7E9A3C
accent
#E642B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1764

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

Preview Lab → · Contrast checker → · Palette generator →

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