#2D1250#2D1250

#2D1250 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.107 H 298.7°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1250
RGBrgb(45, 18, 80)
HSLhsl(266, 63%, 19%)
HSVhsv(266, 78%, 31%)
CMYKcmyk(43.7%, 77.5%, 0%, 68.6%)
CIE-LABlab(13.04, 28.24, -32.80)
CIE-LCHlch(13.04, 43.28, 310.73°)
OKLaboklab(26.29% 0.0512 -0.0936)
OKLCHoklch(26.29% 0.107 298.7)
XYZxyz(2.7461, 1.5696, 7.7462)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1250 #355012
analogous
#121650 #2D1250 #4C1250
triadic
#2D1250 #502D12 #12502D
tetradic
#2D1250 #501216 #355012 #12504C
square
#2D1250 #501216 #355012 #12504C
split-complementary
#2D1250 #504C12 #165012
monochromatic
#0E0619 #11071E #2D1250 #491D82 #6528B4

Accessibility & contrast

On white

15.98
#2D1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1250
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1250#FFFFFF#000000##FFFFFF
##2D12501.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#25212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1250;
/* rgb */ color: rgb(45, 18, 80);
/* oklch */ color: oklch(26.3% 0.107 298.7);
Tailwind
colors: {
  custom: {
    50: '#6a5282',
    500: '#2d1250',
    950: '#000000',
  },
}
SCSS
$custom: #2d1250;
$custom-light: #6a5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1250",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 266.129,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26291,
    "c": 0.10671,
    "h": 298.7
  },
  "luminance": 0.0157
}

Semantic roles & 50–950 ramp

primary
#2D1250
secondary
#648935
accent
#E6419F
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1250

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

Preview Lab → · Contrast checker → · Palette generator →

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