#2E1742#2E1742

#2E1742 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.080 H 306.3°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2E1742
RGBrgb(46, 23, 66)
HSLhsl(272, 48%, 17%)
HSVhsv(272, 65%, 26%)
CMYKcmyk(30.3%, 65.2%, 0%, 74.1%)
CIE-LABlab(13.15, 21.37, -22.91)
CIE-LCHlch(13.15, 31.33, 313.00°)
OKLaboklab(26.04% 0.0475 -0.0646)
OKLCHoklch(26.04% 0.08 306.3)
XYZxyz(2.4163, 1.5870, 5.3322)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1742 #2B4217
analogous
#181742 #2E1742 #421741
triadic
#2E1742 #422E17 #17422E
tetradic
#2E1742 #421817 #2B4217 #174142
square
#2E1742 #421817 #2B4217 #174142
split-complementary
#2E1742 #414217 #174218
monochromatic
#100817 #100817 #2E1742 #4E276F #6D379D

Accessibility & contrast

On white

15.94
#2E1742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1742
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1742#FFFFFF#000000##FFFFFF
##2E17421.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072143
Deuteranopia (green-blind)
#102241
Tritanopia (blue-blind)
#2B1F29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1742;
/* rgb */ color: rgb(46, 23, 66);
/* oklch */ color: oklch(26.0% 0.080 306.3);
Tailwind
colors: {
  custom: {
    50: '#685577',
    500: '#2e1742',
    950: '#000000',
  },
}
SCSS
$custom: #2e1742;
$custom-light: #685577;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1742",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 66
  },
  "hsl": {
    "h": 272.093,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26037,
    "c": 0.08015,
    "h": 306.3
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#2E1742
secondary
#58793C
accent
#D8508F
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E1742

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

Preview Lab → · Contrast checker → · Palette generator →

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