#2E2153#2E2153

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

Color values

HEX#2E2153
RGBrgb(46, 33, 83)
HSLhsl(256, 43%, 23%)
HSVhsv(256, 60%, 33%)
CMYKcmyk(44.6%, 60.2%, 0%, 67.5%)
CIE-LABlab(16.96, 19.93, -28.50)
CIE-LCHlch(16.96, 34.78, 304.96°)
OKLaboklab(29.24% 0.0329 -0.081)
OKLCHoklch(29.24% 0.087 292.1)
XYZxyz(3.2315, 2.2930, 8.4543)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2153 #465321
analogous
#212D53 #2E2153 #472153
triadic
#2E2153 #532E21 #21532E
tetradic
#2E2153 #53212D #465321 #215347
square
#2E2153 #53212D #465321 #215347
split-complementary
#2E2153 #534721 #2D5321
monochromatic
#0C0916 #161027 #2E2153 #46327F #5F44AB

Accessibility & contrast

On white

14.40
#2E2153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2153
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2153#FFFFFF#000000##FFFFFF
##2E21531.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082B55
Deuteranopia (green-blind)
#0B2952
Tritanopia (blue-blind)
#242C36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2153;
/* rgb */ color: rgb(46, 33, 83);
/* oklch */ color: oklch(29.2% 0.087 292.1);
Tailwind
colors: {
  custom: {
    50: '#6a5c84',
    500: '#2e2153',
    950: '#000000',
  },
}
SCSS
$custom: #2e2153;
$custom-light: #6a5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2153",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 255.6,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29237,
    "c": 0.08743,
    "h": 292.1
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#2E2153
secondary
#778749
accent
#D355B2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2E2153

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

Preview Lab → · Contrast checker → · Palette generator →

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