#2D214C#2D214C

#2D214C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.6% C 0.077 H 293.9°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2D214C
RGBrgb(45, 33, 76)
HSLhsl(257, 39%, 21%)
HSVhsv(257, 57%, 30%)
CMYKcmyk(40.8%, 56.6%, 0%, 70.2%)
CIE-LABlab(16.34, 17.38, -24.74)
CIE-LCHlch(16.34, 30.23, 305.08°)
OKLaboklab(28.59% 0.031 -0.07)
OKLCHoklch(28.59% 0.077 293.9)
XYZxyz(2.9302, 2.1673, 7.1000)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D214C #404C21
analogous
#212B4C #2D214C #43214C
triadic
#2D214C #4C2D21 #214C2D
tetradic
#2D214C #4C212B #404C21 #214C43
square
#2D214C #4C212B #404C21 #214C43
split-complementary
#2D214C #4C4321 #2B4C21
monochromatic
#0D0915 #140E21 #2D214C #463477 #6046A1

Accessibility & contrast

On white

14.65
#2D214C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D214C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D214C
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D214C#FFFFFF#000000##FFFFFF
##2D214C1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10294E
Deuteranopia (green-blind)
#12284B
Tritanopia (blue-blind)
#252A33
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d214c;
/* rgb */ color: rgb(45, 33, 76);
/* oklch */ color: oklch(28.6% 0.077 293.9);
Tailwind
colors: {
  custom: {
    50: '#685c7e',
    500: '#2d214c',
    950: '#000000',
  },
}
SCSS
$custom: #2d214c;
$custom-light: #685c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d214c",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 76
  },
  "hsl": {
    "h": 256.744,
    "s": 39.45,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28594,
    "c": 0.07654,
    "h": 293.9
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#2D214C
secondary
#718049
accent
#CF58AE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D214C

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

Preview Lab → · Contrast checker → · Palette generator →

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