#2E1754#2E1754

#2E1754 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.105 H 296.1°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1754
RGBrgb(46, 23, 84)
HSLhsl(263, 57%, 21%)
HSVhsv(263, 73%, 33%)
CMYKcmyk(45.2%, 72.6%, 0%, 67.1%)
CIE-LABlab(14.59, 26.74, -33.00)
CIE-LCHlch(14.59, 42.48, 309.01°)
OKLaboklab(27.54% 0.0461 -0.0942)
OKLCHoklch(27.54% 0.105 296.1)
XYZxyz(3.0329, 1.8337, 8.5799)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1754 #3D5417
analogous
#171E54 #2E1754 #4C1754
triadic
#2E1754 #542E17 #17542E
tetradic
#2E1754 #54171E #3D5417 #17544C
square
#2E1754 #54171E #3D5417 #17544C
split-complementary
#2E1754 #544C17 #1E5417
monochromatic
#0D0718 #140A24 #2E1754 #482484 #6331B4

Accessibility & contrast

On white

15.36
#2E1754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1754
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1754#FFFFFF#000000##FFFFFF
##2E17541.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#242533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1754;
/* rgb */ color: rgb(46, 23, 84);
/* oklch */ color: oklch(27.5% 0.105 296.1);
Tailwind
colors: {
  custom: {
    50: '#6b5685',
    500: '#2e1754',
    950: '#000000',
  },
}
SCSS
$custom: #2e1754;
$custom-light: #6b5685;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1754",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 262.623,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27537,
    "c": 0.10493,
    "h": 296.1
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#2E1754
secondary
#6D8B3C
accent
#E048A7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1754

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

Preview Lab → · Contrast checker → · Palette generator →

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