#2E1651#2E1651

#2E1651 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.102 H 297.8°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2E1651
RGBrgb(46, 22, 81)
HSLhsl(264, 57%, 20%)
HSVhsv(264, 73%, 32%)
CMYKcmyk(43.2%, 72.8%, 0%, 68.2%)
CIE-LABlab(14.11, 26.43, -31.74)
CIE-LCHlch(14.11, 41.31, 309.78°)
OKLaboklab(27.11% 0.0478 -0.0905)
OKLCHoklch(27.11% 0.102 297.8)
XYZxyz(2.8984, 1.7487, 7.9678)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1651 #395116
analogous
#161B51 #2E1651 #4C1651
triadic
#2E1651 #512E16 #16512E
tetradic
#2E1651 #51161B #395116 #16514C
square
#2E1651 #51161B #395116 #16514C
split-complementary
#2E1651 #514C16 #1B5116
monochromatic
#0E0718 #130921 #2E1651 #492381 #6530B1

Accessibility & contrast

On white

15.56
#2E1651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1651
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1651#FFFFFF#000000##FFFFFF
##2E16511.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#262431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1651;
/* rgb */ color: rgb(46, 22, 81);
/* oklch */ color: oklch(27.1% 0.102 297.8);
Tailwind
colors: {
  custom: {
    50: '#6a5582',
    500: '#2e1651',
    950: '#000000',
  },
}
SCSS
$custom: #2e1651;
$custom-light: #6a5582;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1651",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 264.407,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27111,
    "c": 0.10239,
    "h": 297.8
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#2E1651
secondary
#69883A
accent
#E147A2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1651

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

Preview Lab → · Contrast checker → · Palette generator →

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