#2D1990#2D1990

#2D1990 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.179 H 278.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2D1990
RGBrgb(45, 25, 144)
HSLhsl(250, 70%, 33%)
HSVhsv(250, 83%, 56%)
CMYKcmyk(68.7%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.08, 44.24, -61.21)
CIE-LCHlch(21.08, 75.52, 305.86°)
OKLaboklab(33.95% 0.0269 -0.1768)
OKLCHoklch(33.95% 0.179 278.7)
XYZxyz(6.4622, 3.2662, 26.6700)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1990 #7C9019
analogous
#194090 #2D1990 #681990
triadic
#2D1990 #902D19 #19902D
tetradic
#2D1990 #901940 #7C9019 #199068
square
#2D1990 #901940 #7C9019 #199068
split-complementary
#2D1990 #906819 #409019
monochromatic
#0C0728 #1D105C #2D1990 #3D22C4 #5F45DF

Accessibility & contrast

On white

12.70
#2D1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1990
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1990#FFFFFF#000000##FFFFFF
##2D19901.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1990;
/* rgb */ color: rgb(45, 25, 144);
/* oklch */ color: oklch(34.0% 0.179 278.7);
Tailwind
colors: {
  custom: {
    50: '#765ab2',
    500: '#2d1990',
    950: '#000000',
  },
}
SCSS
$custom: #2d1990;
$custom-light: #765ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1990",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 250.084,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33951,
    "c": 0.17881,
    "h": 278.7
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#2D1990
secondary
#ABC045
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1990

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

Preview Lab → · Contrast checker → · Palette generator →

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