#2E2161#2E2161

#2E2161 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.108 H 287.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2E2161
RGBrgb(46, 33, 97)
HSLhsl(252, 49%, 25%)
HSVhsv(252, 66%, 38%)
CMYKcmyk(52.6%, 66%, 0%, 62%)
CIE-LABlab(18.06, 24.57, -36.07)
CIE-LCHlch(18.06, 43.64, 304.26°)
OKLaboklab(30.4% 0.0325 -0.1033)
OKLCHoklch(30.4% 0.108 287.5)
XYZxyz(3.8276, 2.5315, 11.5939)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2161 #546121
analogous
#213461 #2E2161 #4E2161
triadic
#2E2161 #612E21 #21612E
tetradic
#2E2161 #612134 #546121 #21614E
square
#2E2161 #612134 #546121 #21614E
split-complementary
#2E2161 #614E21 #346121
monochromatic
#0B0817 #181133 #2E2161 #44318F #5940BC

Accessibility & contrast

On white

13.94
#2E2161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E2161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2161
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2161#FFFFFF#000000##FFFFFF
##2E21611.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#1C303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2161;
/* rgb */ color: rgb(46, 33, 97);
/* oklch */ color: oklch(30.4% 0.108 287.5);
Tailwind
colors: {
  custom: {
    50: '#6c5d8e',
    500: '#2e2161',
    950: '#000000',
  },
}
SCSS
$custom: #2e2161;
$custom-light: #6c5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2161",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 252.188,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.304,
    "c": 0.10826,
    "h": 287.5
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#2E2161
secondary
#869549
accent
#D94FBD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E2161

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

Preview Lab → · Contrast checker → · Palette generator →

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