#2E1753#2E1753

#2E1753 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.104 H 296.5°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2E1753
RGBrgb(46, 23, 83)
HSLhsl(263, 57%, 21%)
HSVhsv(263, 72%, 33%)
CMYKcmyk(44.6%, 72.3%, 0%, 67.5%)
CIE-LABlab(14.50, 26.43, -32.47)
CIE-LCHlch(14.50, 41.87, 309.15°)
OKLaboklab(27.45% 0.0463 -0.0927)
OKLCHoklch(27.45% 0.104 296.5)
XYZxyz(2.9940, 1.8181, 8.3751)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1753 #3C5317
analogous
#171E53 #2E1753 #4C1753
triadic
#2E1753 #532E17 #17532E
tetradic
#2E1753 #53171E #3C5317 #17534C
square
#2E1753 #53171E #3C5317 #17534C
split-complementary
#2E1753 #534C17 #1E5317
monochromatic
#0D0718 #130A23 #2E1753 #492483 #6332B3

Accessibility & contrast

On white

15.40
#2E1753 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1753 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1753
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1753#FFFFFF#000000##FFFFFF
##2E17531.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#252532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1753;
/* rgb */ color: rgb(46, 23, 83);
/* oklch */ color: oklch(27.4% 0.104 296.5);
Tailwind
colors: {
  custom: {
    50: '#6a5684',
    500: '#2e1753',
    950: '#000000',
  },
}
SCSS
$custom: #2e1753;
$custom-light: #6a5684;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1753",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 83
  },
  "hsl": {
    "h": 263,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27447,
    "c": 0.10358,
    "h": 296.5
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#2E1753
secondary
#6C8A3C
accent
#E048A6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1753

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

Preview Lab → · Contrast checker → · Palette generator →

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