#2E1255#2E1255

#2E1255 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.113 H 297.2°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2E1255
RGBrgb(46, 18, 85)
HSLhsl(265, 65%, 20%)
HSVhsv(265, 79%, 33%)
CMYKcmyk(45.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(13.65, 29.92, -35.22)
CIE-LCHlch(13.65, 46.21, 310.35°)
OKLaboklab(26.89% 0.0517 -0.1007)
OKLCHoklch(26.89% 0.113 297.2)
XYZxyz(2.9823, 1.6693, 8.7576)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1255 #395512
analogous
#121755 #2E1255 #501255
triadic
#2E1255 #552E12 #12552E
tetradic
#2E1255 #551217 #395512 #125550
square
#2E1255 #551217 #395512 #125550
split-complementary
#2E1255 #555012 #175512
monochromatic
#0E0519 #130722 #2E1255 #491D88 #6527BA

Accessibility & contrast

On white

15.74
#2E1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1255
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1255#FFFFFF#000000##FFFFFF
##2E12551.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#242332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1255;
/* rgb */ color: rgb(46, 18, 85);
/* oklch */ color: oklch(26.9% 0.113 297.2);
Tailwind
colors: {
  custom: {
    50: '#6b5385',
    500: '#2e1255',
    950: '#000000',
  },
}
SCSS
$custom: #2e1255;
$custom-light: #6b5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1255",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 265.075,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26893,
    "c": 0.1132,
    "h": 297.2
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#2E1255
secondary
#698E35
accent
#E840A2
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1255

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

Preview Lab → · Contrast checker → · Palette generator →

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