#2D1380#2D1380

#2D1380 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.165 H 282.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1380
RGBrgb(45, 19, 128)
HSLhsl(254, 74%, 29%)
HSVhsv(254, 85%, 50%)
CMYKcmyk(64.8%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.28, 42.16, -55.78)
CIE-LCHlch(18.28, 69.92, 307.08°)
OKLaboklab(31.48% 0.0352 -0.1609)
OKLCHoklch(31.48% 0.165 282.4)
XYZxyz(5.2101, 2.5818, 20.6417)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1380 #668013
analogous
#133080 #2D1380 #641380
triadic
#2D1380 #802D13 #13802D
tetradic
#2D1380 #801330 #668013 #138064
square
#2D1380 #801330 #668013 #138064
split-complementary
#2D1380 #806413 #308013
monochromatic
#09041B #1A0B4B #2D1380 #401BB5 #582DE0

Accessibility & contrast

On white

13.85
#2D1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1380
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1380#FFFFFF#000000##FFFFFF
##2D13801.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1380;
/* rgb */ color: rgb(45, 19, 128);
/* oklch */ color: oklch(31.5% 0.165 282.4);
Tailwind
colors: {
  custom: {
    50: '#7356a6',
    500: '#2d1380',
    950: '#000000',
  },
}
SCSS
$custom: #2d1380;
$custom-light: #7356a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1380",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 254.312,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31477,
    "c": 0.16471,
    "h": 282.4
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#2D1380
secondary
#98B539
accent
#F137C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1380

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

Preview Lab → · Contrast checker → · Palette generator →

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