#2E214F#2E214F

#2E214F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.081 H 293.7°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2E214F
RGBrgb(46, 33, 79)
HSLhsl(257, 41%, 22%)
HSVhsv(257, 58%, 31%)
CMYKcmyk(41.8%, 58.2%, 0%, 69%)
CIE-LABlab(16.67, 18.63, -26.26)
CIE-LCHlch(16.67, 32.20, 305.36°)
OKLaboklab(28.93% 0.0327 -0.0744)
OKLCHoklch(28.93% 0.081 293.7)
XYZxyz(3.0815, 2.2330, 7.6643)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E214F #424F21
analogous
#212B4F #2E214F #45214F
triadic
#2E214F #4F2E21 #214F2E
tetradic
#2E214F #4F212B #424F21 #214F45
square
#2E214F #4F212B #424F21 #214F45
split-complementary
#2E214F #4F4521 #2B4F21
monochromatic
#0D0916 #150F24 #2E214F #47337A #6045A5

Accessibility & contrast

On white

14.52
#2E214F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E214F
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E214F#FFFFFF#000000##FFFFFF
##2E214F1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A51
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#262A34
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e214f;
/* rgb */ color: rgb(46, 33, 79);
/* oklch */ color: oklch(28.9% 0.081 293.7);
Tailwind
colors: {
  custom: {
    50: '#695c81',
    500: '#2e214f',
    950: '#000000',
  },
}
SCSS
$custom: #2e214f;
$custom-light: #695c81;
$custom-dark: #000000;
JSON
{
  "hex": "#2e214f",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 79
  },
  "hsl": {
    "h": 256.957,
    "s": 41.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28929,
    "c": 0.08129,
    "h": 293.7
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#2E214F
secondary
#738349
accent
#D157AE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E214F

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

Preview Lab → · Contrast checker → · Palette generator →

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