#2E2157#2E2157

#2E2157 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.093 H 290.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2E2157
RGBrgb(46, 33, 87)
HSLhsl(254, 45%, 24%)
HSVhsv(254, 62%, 34%)
CMYKcmyk(47.1%, 62.1%, 0%, 65.9%)
CIE-LABlab(17.26, 21.24, -30.71)
CIE-LCHlch(17.26, 37.34, 304.67°)
OKLaboklab(29.56% 0.0329 -0.0875)
OKLCHoklch(29.56% 0.093 290.6)
XYZxyz(3.3904, 2.3566, 9.2912)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2157 #4A5721
analogous
#212F57 #2E2157 #492157
triadic
#2E2157 #572E21 #21572E
tetradic
#2E2157 #57212F #4A5721 #215749
square
#2E2157 #57212F #4A5721 #215749
split-complementary
#2E2157 #574921 #2F5721
monochromatic
#0C0816 #17102B #2E2157 #453283 #5D43B0

Accessibility & contrast

On white

14.27
#2E2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2157
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2157#FFFFFF#000000##FFFFFF
##2E21571.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B59
Deuteranopia (green-blind)
#052956
Tritanopia (blue-blind)
#222D38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2157;
/* rgb */ color: rgb(46, 33, 87);
/* oklch */ color: oklch(29.6% 0.093 290.6);
Tailwind
colors: {
  custom: {
    50: '#6a5c87',
    500: '#2e2157',
    950: '#000000',
  },
}
SCSS
$custom: #2e2157;
$custom-light: #6a5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2157",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 254.444,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29557,
    "c": 0.09349,
    "h": 290.6
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2E2157
secondary
#7B8B49
accent
#D553B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E2157

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

Preview Lab → · Contrast checker → · Palette generator →

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