#2D1360#2D1360

#2D1360 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.126 H 291.5°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2D1360
RGBrgb(45, 19, 96)
HSLhsl(260, 67%, 23%)
HSVhsv(260, 80%, 38%)
CMYKcmyk(53.1%, 80.2%, 0%, 62.4%)
CIE-LABlab(14.78, 32.50, -40.77)
CIE-LCHlch(14.78, 52.13, 308.56°)
OKLaboklab(27.99% 0.046 -0.117)
OKLCHoklch(27.99% 0.126 291.5)
XYZxyz(3.4258, 1.8680, 11.2441)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1360 #466013
analogous
#131F60 #2D1360 #541360
triadic
#2D1360 #602D13 #13602D
tetradic
#2D1360 #60131F #466013 #136054
square
#2D1360 #60131F #466013 #136054
split-complementary
#2D1360 #605413 #1F6013
monochromatic
#0C051A #15092D #2D1360 #451D93 #5D27C6

Accessibility & contrast

On white

15.29
#2D1360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1360
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1360#FFFFFF#000000##FFFFFF
##2D13601.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1360;
/* rgb */ color: rgb(45, 19, 96);
/* oklch */ color: oklch(28.0% 0.126 291.5);
Tailwind
colors: {
  custom: {
    50: '#6c548e',
    500: '#2d1360',
    950: '#000000',
  },
}
SCSS
$custom: #2d1360;
$custom-light: #6c548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1360",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 96
  },
  "hsl": {
    "h": 260.26,
    "s": 66.957,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27993,
    "c": 0.12578,
    "h": 291.5
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#2D1360
secondary
#779837
accent
#EA3EB0
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1360

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

Preview Lab → · Contrast checker → · Palette generator →

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