#2E2165#2E2165

#2E2165 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.114 H 286.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2165
RGBrgb(46, 33, 101)
HSLhsl(251, 51%, 26%)
HSVhsv(251, 67%, 40%)
CMYKcmyk(54.5%, 67.3%, 0%, 60.4%)
CIE-LABlab(18.40, 25.92, -38.15)
CIE-LCHlch(18.40, 46.12, 304.19°)
OKLaboklab(30.75% 0.0322 -0.1094)
OKLCHoklch(30.75% 0.114 286.4)
XYZxyz(4.0188, 2.6079, 12.6010)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2165 #586521
analogous
#213665 #2E2165 #502165
triadic
#2E2165 #652E21 #21652E
tetradic
#2E2165 #652136 #586521 #216550
square
#2E2165 #652136 #586521 #216550
split-complementary
#2E2165 #655021 #366521
monochromatic
#0B0817 #191237 #2E2165 #433093 #5840C1

Accessibility & contrast

On white

13.80
#2E2165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E2165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2165
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2165#FFFFFF#000000##FFFFFF
##2E21651.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#19313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2165;
/* rgb */ color: rgb(46, 33, 101);
/* oklch */ color: oklch(30.8% 0.114 286.4);
Tailwind
colors: {
  custom: {
    50: '#6c5d91',
    500: '#2e2165',
    950: '#000000',
  },
}
SCSS
$custom: #2e2165;
$custom-light: #6c5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2165",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 101
  },
  "hsl": {
    "h": 251.471,
    "s": 50.746,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30754,
    "c": 0.11402,
    "h": 286.4
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2E2165
secondary
#8A9949
accent
#DA4EBF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E2165

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

Preview Lab → · Contrast checker → · Palette generator →

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