#2E1253#2E1253

#2E1253 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.111 H 298.1°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1253
RGBrgb(46, 18, 83)
HSLhsl(266, 64%, 20%)
HSVhsv(266, 78%, 33%)
CMYKcmyk(44.6%, 78.3%, 0%, 67.5%)
CIE-LABlab(13.46, 29.33, -34.16)
CIE-LCHlch(13.46, 45.03, 310.65°)
OKLaboklab(26.7% 0.0522 -0.0976)
OKLCHoklch(26.7% 0.111 298.1)
XYZxyz(2.9040, 1.6379, 8.3451)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1253 #375312
analogous
#121753 #2E1253 #4E1253
triadic
#2E1253 #532E12 #12532E
tetradic
#2E1253 #531217 #375312 #12534E
square
#2E1253 #531217 #375312 #12534E
split-complementary
#2E1253 #534E12 #175312
monochromatic
#0E0519 #120721 #2E1253 #4A1D85 #6628B8

Accessibility & contrast

On white

15.82
#2E1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1253
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1253#FFFFFF#000000##FFFFFF
##2E12531.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#252231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1253;
/* rgb */ color: rgb(46, 18, 83);
/* oklch */ color: oklch(26.7% 0.111 298.1);
Tailwind
colors: {
  custom: {
    50: '#6b5384',
    500: '#2e1253',
    950: '#000000',
  },
}
SCSS
$custom: #2e1253;
$custom-light: #6b5384;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1253",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 265.846,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26703,
    "c": 0.11068,
    "h": 298.1
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#2E1253
secondary
#668C35
accent
#E7409F
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1253

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

Preview Lab → · Contrast checker → · Palette generator →

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