#2E2160#2E2160

#2E2160 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.107 H 287.8°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2E2160
RGBrgb(46, 33, 96)
HSLhsl(252, 49%, 25%)
HSVhsv(252, 66%, 38%)
CMYKcmyk(52.1%, 65.6%, 0%, 62.4%)
CIE-LABlab(17.98, 24.24, -35.54)
CIE-LCHlch(17.98, 43.02, 304.29°)
OKLaboklab(30.31% 0.0326 -0.1017)
OKLCHoklch(30.31% 0.107 287.8)
XYZxyz(3.7813, 2.5129, 11.3499)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2160 #536021
analogous
#213360 #2E2160 #4D2160
triadic
#2E2160 #602E21 #21602E
tetradic
#2E2160 #602133 #536021 #21604D
square
#2E2160 #602133 #536021 #21604D
split-complementary
#2E2160 #604D21 #336021
monochromatic
#0B0817 #181132 #2E2160 #44318E #5A40BB

Accessibility & contrast

On white

13.98
#2E2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2160
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2160#FFFFFF#000000##FFFFFF
##2E21601.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#1D303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2160;
/* rgb */ color: rgb(46, 33, 96);
/* oklch */ color: oklch(30.3% 0.107 287.8);
Tailwind
colors: {
  custom: {
    50: '#6c5d8e',
    500: '#2e2160',
    950: '#000000',
  },
}
SCSS
$custom: #2e2160;
$custom-light: #6c5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2160",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 252.381,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30313,
    "c": 0.10681,
    "h": 287.8
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#2E2160
secondary
#859449
accent
#D84FBC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E2160

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

Preview Lab → · Contrast checker → · Palette generator →

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