#2D2156#2D2156

#2D2156 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.092 H 290.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2D2156
RGBrgb(45, 33, 86)
HSLhsl(254, 45%, 23%)
HSVhsv(254, 62%, 34%)
CMYKcmyk(47.7%, 61.6%, 0%, 66.3%)
CIE-LABlab(17.07, 20.65, -30.34)
CIE-LCHlch(17.07, 36.70, 304.24°)
OKLaboklab(29.37% 0.0314 -0.0865)
OKLCHoklch(29.37% 0.092 290)
XYZxyz(3.3053, 2.3174, 9.0754)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2156 #4A5621
analogous
#212F56 #2D2156 #472156
triadic
#2D2156 #562D21 #21562D
tetradic
#2D2156 #56212F #4A5621 #215647
square
#2D2156 #56212F #4A5621 #215647
split-complementary
#2D2156 #564721 #2F5621
monochromatic
#0C0816 #16102A #2D2156 #443282 #5B43AE

Accessibility & contrast

On white

14.35
#2D2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2156
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2156#FFFFFF#000000##FFFFFF
##2D21561.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#052955
Tritanopia (blue-blind)
#212D38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d2156;
/* rgb */ color: rgb(45, 33, 86);
/* oklch */ color: oklch(29.4% 0.092 290.0);
Tailwind
colors: {
  custom: {
    50: '#695c86',
    500: '#2d2156',
    950: '#000000',
  },
}
SCSS
$custom: #2d2156;
$custom-light: #695c86;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2156",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 253.585,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29369,
    "c": 0.092,
    "h": 290
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#2D2156
secondary
#7B8A49
accent
#D454B7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2D2156

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

Preview Lab → · Contrast checker → · Palette generator →

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