#2D2159#2D2159

#2D2159 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.6% C 0.097 H 289.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2D2159
RGBrgb(45, 33, 89)
HSLhsl(253, 46%, 24%)
HSVhsv(253, 63%, 35%)
CMYKcmyk(49.4%, 62.9%, 0%, 65.1%)
CIE-LABlab(17.30, 21.65, -31.98)
CIE-LCHlch(17.30, 38.62, 304.10°)
OKLaboklab(29.62% 0.0314 -0.0913)
OKLCHoklch(29.62% 0.097 289)
XYZxyz(3.4287, 2.3667, 9.7254)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2159 #4D5921
analogous
#213159 #2D2159 #492159
triadic
#2D2159 #592D21 #21592D
tetradic
#2D2159 #592131 #4D5921 #215949
square
#2D2159 #592131 #4D5921 #215949
split-complementary
#2D2159 #594921 #315921
monochromatic
#0B0816 #16102C #2D2159 #443286 #5A42B2

Accessibility & contrast

On white

14.25
#2D2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2159
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2159#FFFFFF#000000##FFFFFF
##2D21591.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#1F2E39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d2159;
/* rgb */ color: rgb(45, 33, 89);
/* oklch */ color: oklch(29.6% 0.097 289.0);
Tailwind
colors: {
  custom: {
    50: '#6a5c88',
    500: '#2d2159',
    950: '#000000',
  },
}
SCSS
$custom: #2d2159;
$custom-light: #6a5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2159",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 252.857,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29615,
    "c": 0.09652,
    "h": 289
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#2D2159
secondary
#7F8D49
accent
#D652B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2D2159

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

Preview Lab → · Contrast checker → · Palette generator →

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