#2E226A#2E226A

#2E226A is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.120 H 284.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#2E226A
RGBrgb(46, 34, 106)
HSLhsl(250, 51%, 27%)
HSVhsv(250, 68%, 42%)
CMYKcmyk(56.6%, 67.9%, 0%, 58.4%)
CIE-LABlab(19.08, 26.95, -40.32)
CIE-LCHlch(19.08, 48.50, 303.76°)
OKLaboklab(31.38% 0.0305 -0.1158)
OKLCHoklch(31.38% 0.12 284.8)
XYZxyz(4.2995, 2.7653, 13.9401)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E226A #5E6A22
analogous
#223A6A #2E226A #52226A
triadic
#2E226A #6A2E22 #226A2E
tetradic
#2E226A #6A223A #5E6A22 #226A52
square
#2E226A #6A223A #5E6A22 #226A52
split-complementary
#2E226A #6A5222 #3A6A22
monochromatic
#0A0717 #1A133C #2E226A #423198 #5944C3

Accessibility & contrast

On white

13.52
#2E226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E226A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E226A#FFFFFF#000000##FFFFFF
##2E226A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#153442
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e226a;
/* rgb */ color: rgb(46, 34, 106);
/* oklch */ color: oklch(31.4% 0.120 284.8);
Tailwind
colors: {
  custom: {
    50: '#6d5e95',
    500: '#2e226a',
    950: '#000000',
  },
}
SCSS
$custom: #2e226a;
$custom-light: #6d5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#2e226a",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 250,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31383,
    "c": 0.11972,
    "h": 284.8
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#2E226A
secondary
#909E4A
accent
#DB4DC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E226A

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

Preview Lab → · Contrast checker → · Palette generator →

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