#2D2256#2D2256

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

Color values

HEX#2D2256
RGBrgb(45, 34, 86)
HSLhsl(253, 43%, 24%)
HSVhsv(253, 60%, 34%)
CMYKcmyk(47.7%, 60.5%, 0%, 66.3%)
CIE-LABlab(17.34, 19.97, -29.92)
CIE-LCHlch(17.34, 35.97, 303.72°)
OKLaboklab(29.57% 0.0301 -0.0852)
OKLCHoklch(29.57% 0.09 289.4)
XYZxyz(3.3335, 2.3737, 9.0848)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2256 #4B5622
analogous
#223156 #2D2256 #472256
triadic
#2D2256 #562D22 #22562D
tetradic
#2D2256 #562231 #4B5622 #225647
square
#2D2256 #562231 #4B5622 #225647
split-complementary
#2D2256 #564722 #315622
monochromatic
#0B0916 #16112A #2D2256 #443382 #5B45AE

Accessibility & contrast

On white

14.24
#2D2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2256
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2256#FFFFFF#000000##FFFFFF
##2D22561.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C58
Deuteranopia (green-blind)
#072955
Tritanopia (blue-blind)
#212D38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d2256;
/* rgb */ color: rgb(45, 34, 86);
/* oklch */ color: oklch(29.6% 0.090 289.4);
Tailwind
colors: {
  custom: {
    50: '#695d86',
    500: '#2d2256',
    950: '#000000',
  },
}
SCSS
$custom: #2d2256;
$custom-light: #695d86;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2256",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 252.692,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29566,
    "c": 0.09034,
    "h": 289.4
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#2D2256
secondary
#7C8A4A
accent
#D355B8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2D2256

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

Preview Lab → · Contrast checker → · Palette generator →

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