#2D2155#2D2155

#2D2155 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.090 H 290.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2D2155
RGBrgb(45, 33, 85)
HSLhsl(254, 44%, 23%)
HSVhsv(254, 61%, 33%)
CMYKcmyk(47.1%, 61.2%, 0%, 66.7%)
CIE-LABlab(17.00, 20.32, -29.79)
CIE-LCHlch(17.00, 36.06, 304.29°)
OKLaboklab(29.29% 0.0314 -0.0848)
OKLCHoklch(29.29% 0.09 290.3)
XYZxyz(3.2653, 2.3014, 8.8647)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2155 #495521
analogous
#212F55 #2D2155 #472155
triadic
#2D2155 #552D21 #21552D
tetradic
#2D2155 #55212F #495521 #215547
square
#2D2155 #55212F #495521 #215547
split-complementary
#2D2155 #554721 #2F5521
monochromatic
#0C0916 #161029 #2D2155 #443281 #5C43AD

Accessibility & contrast

On white

14.38
#2D2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2155
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2155#FFFFFF#000000##FFFFFF
##2D21551.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052B57
Deuteranopia (green-blind)
#072954
Tritanopia (blue-blind)
#212C37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d2155;
/* rgb */ color: rgb(45, 33, 85);
/* oklch */ color: oklch(29.3% 0.090 290.3);
Tailwind
colors: {
  custom: {
    50: '#695c85',
    500: '#2d2155',
    950: '#000000',
  },
}
SCSS
$custom: #2d2155;
$custom-light: #695c85;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2155",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 253.846,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29289,
    "c": 0.09047,
    "h": 290.3
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#2D2155
secondary
#7A8949
accent
#D454B6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2D2155

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

Preview Lab → · Contrast checker → · Palette generator →

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