#2E1640#2E1640

#2E1640 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.079 H 308.2°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2E1640
RGBrgb(46, 22, 64)
HSLhsl(274, 49%, 17%)
HSVhsv(274, 66%, 25%)
CMYKcmyk(28.1%, 65.6%, 0%, 74.9%)
CIE-LABlab(12.77, 21.44, -22.12)
CIE-LCHlch(12.77, 30.81, 314.11°)
OKLaboklab(25.71% 0.049 -0.0623)
OKLCHoklch(25.71% 0.079 308.2)
XYZxyz(2.3389, 1.5249, 5.0206)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1640 #284016
analogous
#191640 #2E1640 #40163D
triadic
#2E1640 #402E16 #16402E
tetradic
#2E1640 #401916 #284016 #163D40
square
#2E1640 #401916 #284016 #163D40
split-complementary
#2E1640 #3D4016 #164019
monochromatic
#100817 #100817 #2E1640 #4F266E #6F359B

Accessibility & contrast

On white

16.09
#2E1640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1640
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1640#FFFFFF#000000##FFFFFF
##2E16401.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072041
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#2B1E28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1640;
/* rgb */ color: rgb(46, 22, 64);
/* oklch */ color: oklch(25.7% 0.079 308.2);
Tailwind
colors: {
  custom: {
    50: '#685475',
    500: '#2e1640',
    950: '#000000',
  },
}
SCSS
$custom: #2e1640;
$custom-light: #685475;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1640",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 274.286,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25709,
    "c": 0.07922,
    "h": 308.2
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#2E1640
secondary
#55773B
accent
#D84F8A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1640

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

Preview Lab → · Contrast checker → · Palette generator →

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