#2E225E#2E225E

#2E225E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.102 H 287.9°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2E225E
RGBrgb(46, 34, 94)
HSLhsl(252, 47%, 25%)
HSVhsv(252, 64%, 37%)
CMYKcmyk(51.1%, 63.8%, 0%, 63.1%)
CIE-LABlab(18.07, 22.90, -34.07)
CIE-LCHlch(18.07, 41.05, 303.90°)
OKLaboklab(30.33% 0.0315 -0.0974)
OKLCHoklch(30.33% 0.102 287.9)
XYZxyz(3.7185, 2.5329, 10.8805)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E225E #525E22
analogous
#22345E #2E225E #4C225E
triadic
#2E225E #5E2E22 #225E2E
tetradic
#2E225E #5E2234 #525E22 #225E4C
square
#2E225E #5E2234 #525E22 #225E4C
split-complementary
#2E225E #5E4C22 #345E22
monochromatic
#0B0816 #181231 #2E225E #44328B #5A43B8

Accessibility & contrast

On white

13.94
#2E225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E225E
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E225E#FFFFFF#000000##FFFFFF
##2E225E1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#1E303C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e225e;
/* rgb */ color: rgb(46, 34, 94);
/* oklch */ color: oklch(30.3% 0.102 287.9);
Tailwind
colors: {
  custom: {
    50: '#6b5d8c',
    500: '#2e225e',
    950: '#000000',
  },
}
SCSS
$custom: #2e225e;
$custom-light: #6b5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e225e",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 252,
    "s": 46.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30327,
    "c": 0.10235,
    "h": 287.9
  },
  "luminance": 0.02533
}

Semantic roles & 50–950 ramp

primary
#2E225E
secondary
#84924A
accent
#D751BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E225E

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

Preview Lab → · Contrast checker → · Palette generator →

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