#2E2155#2E2155

#2E2155 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.090 H 291.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2E2155
RGBrgb(46, 33, 85)
HSLhsl(255, 44%, 23%)
HSVhsv(255, 61%, 33%)
CMYKcmyk(45.9%, 61.2%, 0%, 66.7%)
CIE-LABlab(17.10, 20.58, -29.61)
CIE-LCHlch(17.10, 36.06, 304.80°)
OKLaboklab(29.4% 0.0329 -0.0843)
OKLCHoklch(29.4% 0.09 291.3)
XYZxyz(3.3098, 2.3243, 8.8668)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2155 #485521
analogous
#212E55 #2E2155 #482155
triadic
#2E2155 #552E21 #21552E
tetradic
#2E2155 #55212E #485521 #215548
square
#2E2155 #55212E #485521 #215548
split-complementary
#2E2155 #554821 #2E5521
monochromatic
#0C0916 #161029 #2E2155 #463281 #5E43AD

Accessibility & contrast

On white

14.34
#2E2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2155
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2155#FFFFFF#000000##FFFFFF
##2E21551.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052B57
Deuteranopia (green-blind)
#082954
Tritanopia (blue-blind)
#232C37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2155;
/* rgb */ color: rgb(46, 33, 85);
/* oklch */ color: oklch(29.4% 0.090 291.3);
Tailwind
colors: {
  custom: {
    50: '#6a5c85',
    500: '#2e2155',
    950: '#000000',
  },
}
SCSS
$custom: #2e2155;
$custom-light: #6a5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2155",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 255,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29396,
    "c": 0.09048,
    "h": 291.3
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2E2155
secondary
#798949
accent
#D454B4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E2155

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

Preview Lab → · Contrast checker → · Palette generator →

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