#2E1257#2E1257

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

Color values

HEX#2E1257
RGBrgb(46, 18, 87)
HSLhsl(264, 66%, 21%)
HSVhsv(264, 79%, 34%)
CMYKcmyk(47.1%, 79.3%, 0%, 65.9%)
CIE-LABlab(13.84, 30.51, -36.26)
CIE-LCHlch(13.84, 47.39, 310.07°)
OKLaboklab(27.09% 0.0512 -0.1038)
OKLCHoklch(27.09% 0.116 296.2)
XYZxyz(3.0629, 1.7015, 9.1820)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1257 #3B5712
analogous
#121857 #2E1257 #501257
triadic
#2E1257 #572E12 #12572E
tetradic
#2E1257 #571218 #3B5712 #125750
square
#2E1257 #571218 #3B5712 #125750
split-complementary
#2E1257 #575012 #185712
monochromatic
#0D0519 #130824 #2E1257 #491C8A #6427BC

Accessibility & contrast

On white

15.67
#2E1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1257
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1257#FFFFFF#000000##FFFFFF
##2E12571.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#232433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1257;
/* rgb */ color: rgb(46, 18, 87);
/* oklch */ color: oklch(27.1% 0.116 296.2);
Tailwind
colors: {
  custom: {
    50: '#6c5387',
    500: '#2e1257',
    950: '#000000',
  },
}
SCSS
$custom: #2e1257;
$custom-light: #6c5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1257",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 264.348,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27086,
    "c": 0.11572,
    "h": 296.2
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#2E1257
secondary
#6B9035
accent
#E93FA4
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1257

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

Preview Lab → · Contrast checker → · Palette generator →

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