#2D108D#2D108D

#2D108D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 280.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2D108D
RGBrgb(45, 16, 141)
HSLhsl(254, 80%, 31%)
HSVhsv(254, 89%, 55%)
CMYKcmyk(68.1%, 88.7%, 0%, 44.7%)
CIE-LABlab(19.44, 47.15, -62.06)
CIE-LCHlch(19.44, 77.94, 307.23°)
OKLaboklab(32.72% 0.0317 -0.1791)
OKLCHoklch(32.72% 0.182 280)
XYZxyz(6.0737, 2.8511, 25.4244)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D108D #708D10
analogous
#10318D #2D108D #6B108D
triadic
#2D108D #8D2D10 #108D2D
tetradic
#2D108D #8D1031 #708D10 #108D6B
square
#2D108D #8D1031 #708D10 #108D6B
split-complementary
#2D108D #8D6B10 #318D10
monochromatic
#0A041F #1B0A56 #2D108D #3F16C4 #5A30E7

Accessibility & contrast

On white

13.37
#2D108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D108D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D108D#FFFFFF#000000##FFFFFF
##2D108D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d108d;
/* rgb */ color: rgb(45, 16, 141);
/* oklch */ color: oklch(32.7% 0.182 280.0);
Tailwind
colors: {
  custom: {
    50: '#7656b0',
    500: '#2d108d',
    950: '#000000',
  },
}
SCSS
$custom: #2d108d;
$custom-light: #7656b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d108d",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 253.92,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3272,
    "c": 0.18188,
    "h": 280
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#2D108D
secondary
#A2C237
accent
#F632C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D108D

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

Preview Lab → · Contrast checker → · Palette generator →

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