#2D1252#2D1252

#2D1252 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.109 H 297.7°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2D1252
RGBrgb(45, 18, 82)
HSLhsl(265, 64%, 20%)
HSVhsv(265, 78%, 32%)
CMYKcmyk(45.1%, 78%, 0%, 67.8%)
CIE-LABlab(13.23, 28.83, -33.86)
CIE-LCHlch(13.23, 44.47, 310.41°)
OKLaboklab(26.48% 0.0507 -0.0968)
OKLCHoklch(26.48% 0.109 297.7)
XYZxyz(2.8211, 1.5996, 8.1411)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1252 #375212
analogous
#121752 #2D1252 #4D1252
triadic
#2D1252 #522D12 #12522D
tetradic
#2D1252 #521217 #375212 #12524D
square
#2D1252 #521217 #375212 #12524D
split-complementary
#2D1252 #524D12 #175212
monochromatic
#0E0619 #110720 #2D1252 #491D84 #6428B6

Accessibility & contrast

On white

15.91
#2D1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1252
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1252#FFFFFF#000000##FFFFFF
##2D12521.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#242230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1252;
/* rgb */ color: rgb(45, 18, 82);
/* oklch */ color: oklch(26.5% 0.109 297.7);
Tailwind
colors: {
  custom: {
    50: '#6a5283',
    500: '#2d1252',
    950: '#000000',
  },
}
SCSS
$custom: #2d1252;
$custom-light: #6a5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1252",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 265.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26479,
    "c": 0.10927,
    "h": 297.7
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#2D1252
secondary
#678B35
accent
#E741A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1252

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

Preview Lab → · Contrast checker → · Palette generator →

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