#2D1190#2D1190

#2D1190 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.185 H 279.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2D1190
RGBrgb(45, 17, 144)
HSLhsl(253, 79%, 32%)
HSVhsv(253, 88%, 56%)
CMYKcmyk(68.7%, 88.2%, 0%, 43.5%)
CIE-LABlab(19.93, 47.64, -63.11)
CIE-LCHlch(19.93, 79.07, 307.05°)
OKLaboklab(33.16% 0.0302 -0.1822)
OKLCHoklch(33.16% 0.185 279.4)
XYZxyz(6.3151, 2.9719, 26.6210)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1190 #749011
analogous
#113590 #2D1190 #6D1190
triadic
#2D1190 #902D11 #11902D
tetradic
#2D1190 #901135 #749011 #11906D
square
#2D1190 #901135 #749011 #11906D
split-complementary
#2D1190 #906D11 #359011
monochromatic
#0B0423 #1C0B59 #2D1190 #3E17C7 #5C34E7

Accessibility & contrast

On white

13.17
#2D1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1190
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1190#FFFFFF#000000##FFFFFF
##2D11901.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1190;
/* rgb */ color: rgb(45, 17, 144);
/* oklch */ color: oklch(33.2% 0.185 279.4);
Tailwind
colors: {
  custom: {
    50: '#7656b2',
    500: '#2d1190',
    950: '#000000',
  },
}
SCSS
$custom: #2d1190;
$custom-light: #7656b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1190",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 253.228,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33163,
    "c": 0.18465,
    "h": 279.4
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#2D1190
secondary
#A5C439
accent
#F532CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D1190

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

Preview Lab → · Contrast checker → · Palette generator →

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