#2D2255#2D2255

#2D2255 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.5% C 0.089 H 289.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2D2255
RGBrgb(45, 34, 85)
HSLhsl(253, 43%, 23%)
HSVhsv(253, 60%, 33%)
CMYKcmyk(47.1%, 60%, 0%, 66.7%)
CIE-LABlab(17.26, 19.64, -29.36)
CIE-LCHlch(17.26, 35.32, 303.77°)
OKLaboklab(29.49% 0.03 -0.0836)
OKLCHoklch(29.49% 0.089 289.8)
XYZxyz(3.2935, 2.3577, 8.8741)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2255 #4A5522
analogous
#223055 #2D2255 #462255
triadic
#2D2255 #552D22 #22552D
tetradic
#2D2255 #552230 #4A5522 #225546
square
#2D2255 #552230 #4A5522 #225546
split-complementary
#2D2255 #554622 #305522
monochromatic
#0C0916 #161129 #2D2255 #443381 #5B45AC

Accessibility & contrast

On white

14.27
#2D2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2255
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2255#FFFFFF#000000##FFFFFF
##2D22551.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072B57
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#212D37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d2255;
/* rgb */ color: rgb(45, 34, 85);
/* oklch */ color: oklch(29.5% 0.089 289.8);
Tailwind
colors: {
  custom: {
    50: '#695d85',
    500: '#2d2255',
    950: '#000000',
  },
}
SCSS
$custom: #2d2255;
$custom-light: #695d85;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2255",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 252.941,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29486,
    "c": 0.0888,
    "h": 289.8
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2255

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

Preview Lab → · Contrast checker → · Palette generator →

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