#2E2152#2E2152

#2E2152 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.086 H 292.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2E2152
RGBrgb(46, 33, 82)
HSLhsl(256, 43%, 23%)
HSVhsv(256, 60%, 32%)
CMYKcmyk(43.9%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.88, 19.60, -27.95)
CIE-LCHlch(16.88, 34.14, 305.05°)
OKLaboklab(29.16% 0.0329 -0.0794)
OKLCHoklch(29.16% 0.086 292.5)
XYZxyz(3.1932, 2.2777, 8.2524)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2152 #455221
analogous
#212D52 #2E2152 #462152
triadic
#2E2152 #522E21 #21522E
tetradic
#2E2152 #52212D #455221 #215246
square
#2E2152 #52212D #455221 #215246
split-complementary
#2E2152 #524621 #2D5221
monochromatic
#0C0916 #160F26 #2E2152 #46337E #5F44A9

Accessibility & contrast

On white

14.43
#2E2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2152
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2152#FFFFFF#000000##FFFFFF
##2E21521.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#0D2951
Tritanopia (blue-blind)
#242B36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2152;
/* rgb */ color: rgb(46, 33, 82);
/* oklch */ color: oklch(29.2% 0.086 292.5);
Tailwind
colors: {
  custom: {
    50: '#695c83',
    500: '#2e2152',
    950: '#000000',
  },
}
SCSS
$custom: #2e2152;
$custom-light: #695c83;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2152",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 255.918,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29159,
    "c": 0.08591,
    "h": 292.5
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#2E2152
secondary
#768649
accent
#D255B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E2152

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

Preview Lab → · Contrast checker → · Palette generator →

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