#2D1260#2D1260

#2D1260 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.127 H 291.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2D1260
RGBrgb(45, 18, 96)
HSLhsl(261, 68%, 22%)
HSVhsv(261, 81%, 38%)
CMYKcmyk(53.1%, 81.3%, 0%, 62.4%)
CIE-LABlab(14.60, 33.02, -41.07)
CIE-LCHlch(14.60, 52.69, 308.80°)
OKLaboklab(27.87% 0.0469 -0.1179)
OKLCHoklch(27.87% 0.127 291.7)
XYZxyz(3.4092, 1.8349, 11.2386)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1260 #456012
analogous
#121E60 #2D1260 #541260
triadic
#2D1260 #602D12 #12602D
tetradic
#2D1260 #60121E #456012 #126054
square
#2D1260 #60121E #456012 #126054
split-complementary
#2D1260 #605412 #1E6012
monochromatic
#0C051A #15082C #2D1260 #451C94 #5D25C7

Accessibility & contrast

On white

15.36
#2D1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D1260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1260
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1260#FFFFFF#000000##FFFFFF
##2D12601.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#1C2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1260;
/* rgb */ color: rgb(45, 18, 96);
/* oklch */ color: oklch(27.9% 0.127 291.7);
Tailwind
colors: {
  custom: {
    50: '#6c538e',
    500: '#2d1260',
    950: '#000000',
  },
}
SCSS
$custom: #2d1260;
$custom-light: #6c538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1260",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 260.769,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27865,
    "c": 0.12692,
    "h": 291.7
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#2D1260
secondary
#769836
accent
#EB3DAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1260

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

Preview Lab → · Contrast checker → · Palette generator →

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