#2D2153#2D2153

#2D2153 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.087 H 291.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2D2153
RGBrgb(45, 33, 83)
HSLhsl(254, 43%, 23%)
HSVhsv(254, 60%, 33%)
CMYKcmyk(45.8%, 60.2%, 0%, 67.5%)
CIE-LABlab(16.84, 19.66, -28.69)
CIE-LCHlch(16.84, 34.78, 304.42°)
OKLaboklab(29.13% 0.0314 -0.0816)
OKLCHoklch(29.13% 0.087 291)
XYZxyz(3.1869, 2.2700, 8.4522)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2153 #475321
analogous
#212E53 #2D2153 #462153
triadic
#2D2153 #532D21 #21532D
tetradic
#2D2153 #53212E #475321 #215346
square
#2D2153 #53212E #475321 #215346
split-complementary
#2D2153 #534621 #2E5321
monochromatic
#0C0916 #151027 #2D2153 #45327F #5C44AB

Accessibility & contrast

On white

14.44
#2D2153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D2153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2153
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2153#FFFFFF#000000##FFFFFF
##2D21531.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A55
Deuteranopia (green-blind)
#0A2852
Tritanopia (blue-blind)
#222C36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d2153;
/* rgb */ color: rgb(45, 33, 83);
/* oklch */ color: oklch(29.1% 0.087 291.0);
Tailwind
colors: {
  custom: {
    50: '#695c84',
    500: '#2d2153',
    950: '#000000',
  },
}
SCSS
$custom: #2d2153;
$custom-light: #695c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2153",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 254.4,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29129,
    "c": 0.08742,
    "h": 291
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#2D2153
secondary
#788749
accent
#D355B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2D2153

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

Preview Lab → · Contrast checker → · Palette generator →

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