#2E224D#2E224D

#2E224D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.0% C 0.076 H 294.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2E224D
RGBrgb(46, 34, 77)
HSLhsl(257, 39%, 22%)
HSVhsv(257, 56%, 30%)
CMYKcmyk(40.3%, 55.8%, 0%, 69.8%)
CIE-LABlab(16.80, 17.30, -24.68)
CIE-LCHlch(16.80, 30.14, 305.02°)
OKLaboklab(28.98% 0.031 -0.0698)
OKLCHoklch(28.98% 0.076 294)
XYZxyz(3.0379, 2.2607, 7.2960)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E224D #414D22
analogous
#222C4D #2E224D #44224D
triadic
#2E224D #4D2E22 #224D2E
tetradic
#2E224D #4D222C #414D22 #224D44
square
#2E224D #4D222C #414D22 #224D44
split-complementary
#2E224D #4D4422 #2C4D22
monochromatic
#0D0915 #150F23 #2E224D #473577 #6147A2

Accessibility & contrast

On white

14.46
#2E224D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E224D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E224D
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E224D#FFFFFF#000000##FFFFFF
##2E224D1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#14294C
Tritanopia (blue-blind)
#262B34
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e224d;
/* rgb */ color: rgb(46, 34, 77);
/* oklch */ color: oklch(29.0% 0.076 294.0);
Tailwind
colors: {
  custom: {
    50: '#695d7f',
    500: '#2e224d',
    950: '#000000',
  },
}
SCSS
$custom: #2e224d;
$custom-light: #695d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e224d",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 77
  },
  "hsl": {
    "h": 256.744,
    "s": 38.739,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28984,
    "c": 0.07639,
    "h": 294
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#2E224D
secondary
#72814A
accent
#CF59AE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E224D

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

Preview Lab → · Contrast checker → · Palette generator →

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