#2E2163#2E2163

#2E2163 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.111 H 286.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2E2163
RGBrgb(46, 33, 99)
HSLhsl(252, 50%, 26%)
HSVhsv(252, 67%, 39%)
CMYKcmyk(53.5%, 66.7%, 0%, 61.2%)
CIE-LABlab(18.23, 25.24, -37.12)
CIE-LCHlch(18.23, 44.89, 304.22°)
OKLaboklab(30.58% 0.0323 -0.1063)
OKLCHoklch(30.58% 0.111 286.9)
XYZxyz(3.9220, 2.5692, 12.0912)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2163 #566321
analogous
#213563 #2E2163 #4F2163
triadic
#2E2163 #632E21 #21632E
tetradic
#2E2163 #632135 #566321 #21634F
square
#2E2163 #632135 #566321 #21634F
split-complementary
#2E2163 #634F21 #356321
monochromatic
#0B0817 #191235 #2E2163 #433091 #5940BF

Accessibility & contrast

On white

13.87
#2E2163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E2163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2163
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2163#FFFFFF#000000##FFFFFF
##2E21631.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#1B313E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e2163;
/* rgb */ color: rgb(46, 33, 99);
/* oklch */ color: oklch(30.6% 0.111 286.9);
Tailwind
colors: {
  custom: {
    50: '#6c5d90',
    500: '#2e2163',
    950: '#000000',
  },
}
SCSS
$custom: #2e2163;
$custom-light: #6c5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2163",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 99
  },
  "hsl": {
    "h": 251.818,
    "s": 50,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30576,
    "c": 0.11115,
    "h": 286.9
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#2E2163
secondary
#889749
accent
#DA4EBE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E2163

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

Preview Lab → · Contrast checker → · Palette generator →

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