#2E1740#2E1740

#2E1740 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.077 H 307.8°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1740
RGBrgb(46, 23, 64)
HSLhsl(274, 47%, 17%)
HSVhsv(274, 64%, 25%)
CMYKcmyk(28.1%, 64.1%, 0%, 74.9%)
CIE-LABlab(13.01, 20.80, -21.74)
CIE-LCHlch(13.01, 30.08, 313.74°)
OKLaboklab(25.89% 0.0474 -0.0611)
OKLCHoklch(25.89% 0.077 307.8)
XYZxyz(2.3583, 1.5638, 5.0271)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1740 #294017
analogous
#1A1740 #2E1740 #40173E
triadic
#2E1740 #402E17 #17402E
tetradic
#2E1740 #401A17 #294017 #173E40
square
#2E1740 #401A17 #294017 #173E40
split-complementary
#2E1740 #3E4017 #17401A
monochromatic
#100817 #100817 #2E1740 #4E276D #6F379A

Accessibility & contrast

On white

16.00
#2E1740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1740
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1740#FFFFFF#000000##FFFFFF
##2E17401.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#2B1F28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1740;
/* rgb */ color: rgb(46, 23, 64);
/* oklch */ color: oklch(25.9% 0.077 307.8);
Tailwind
colors: {
  custom: {
    50: '#685575',
    500: '#2e1740',
    950: '#000000',
  },
}
SCSS
$custom: #2e1740;
$custom-light: #685575;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1740",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 273.659,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25887,
    "c": 0.07736,
    "h": 307.8
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2E1740
secondary
#56773C
accent
#D7518C
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1740

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

Preview Lab → · Contrast checker → · Palette generator →

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