#2E1765#2E1765

#2E1765 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 289.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2E1765
RGBrgb(46, 23, 101)
HSLhsl(258, 63%, 24%)
HSVhsv(258, 77%, 40%)
CMYKcmyk(54.5%, 77.2%, 0%, 60.4%)
CIE-LABlab(16.17, 32.02, -41.79)
CIE-LCHlch(16.17, 52.65, 307.46°)
OKLaboklab(29.15% 0.0426 -0.12)
OKLCHoklch(29.15% 0.127 289.5)
XYZxyz(3.7814, 2.1331, 12.5219)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1765 #4E6517
analogous
#172765 #2E1765 #551765
triadic
#2E1765 #652E17 #17652E
tetradic
#2E1765 #651727 #4E6517 #176555
square
#2E1765 #651727 #4E6517 #176555
split-complementary
#2E1765 #655517 #276517
monochromatic
#0B0619 #170C33 #2E1765 #452297 #5B2EC9

Accessibility & contrast

On white

14.72
#2E1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1765
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1765#FFFFFF#000000##FFFFFF
##2E17651.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1A2C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1765;
/* rgb */ color: rgb(46, 23, 101);
/* oklch */ color: oklch(29.2% 0.127 289.5);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2e1765',
    950: '#000000',
  },
}
SCSS
$custom: #2e1765;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1765",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 257.692,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.12739,
    "h": 289.5
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#2E1765
secondary
#7F9B3C
accent
#E642B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1765

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

Preview Lab → · Contrast checker → · Palette generator →

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