#2E2452#2E2452

#2E2452 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.8% C 0.081 H 290.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2E2452
RGBrgb(46, 36, 82)
HSLhsl(253, 39%, 23%)
HSVhsv(253, 56%, 32%)
CMYKcmyk(43.9%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.70, 17.54, -26.64)
CIE-LCHlch(17.70, 31.89, 303.36°)
OKLaboklab(29.77% 0.0285 -0.0755)
OKLCHoklch(29.77% 0.081 290.7)
XYZxyz(3.2802, 2.4517, 8.2814)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2452 #485224
analogous
#243152 #2E2452 #452452
triadic
#2E2452 #522E24 #24522E
tetradic
#2E2452 #522431 #485224 #245245
square
#2E2452 #522431 #485224 #245245
split-complementary
#2E2452 #524524 #315224
monochromatic
#0C0915 #161127 #2E2452 #46377D #5E49A7

Accessibility & contrast

On white

14.09
#2E2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2452
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2452#FFFFFF#000000##FFFFFF
##2E24521.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#122A51
Tritanopia (blue-blind)
#242D37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e2452;
/* rgb */ color: rgb(46, 36, 82);
/* oklch */ color: oklch(29.8% 0.081 290.7);
Tailwind
colors: {
  custom: {
    50: '#695f83',
    500: '#2e2452',
    950: '#000000',
  },
}
SCSS
$custom: #2e2452;
$custom-light: #695f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2452",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 253.043,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29766,
    "c": 0.08071,
    "h": 290.7
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#2E2452
secondary
#79864C
accent
#CF59B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E2452

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

Preview Lab → · Contrast checker → · Palette generator →

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