#2D149F#2D149F

#2D149F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.200 H 276.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2D149F
RGBrgb(45, 20, 159)
HSLhsl(251, 78%, 35%)
HSVhsv(251, 87%, 62%)
CMYKcmyk(71.7%, 87.4%, 0%, 37.6%)
CIE-LABlab(22.16, 50.80, -68.66)
CIE-LCHlch(22.16, 85.41, 306.50°)
OKLaboklab(35.22% 0.0239 -0.1983)
OKLCHoklch(35.22% 0.2 276.9)
XYZxyz(7.5883, 3.5607, 33.0815)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D149F #869F14
analogous
#14419F #2D149F #72149F
triadic
#2D149F #9F2D14 #149F2D
tetradic
#2D149F #9F1441 #869F14 #149F72
square
#2D149F #9F1441 #869F14 #149F72
split-complementary
#2D149F #9F7214 #419F14
monochromatic
#0E0632 #1E0D69 #2D149F #3C1BD5 #6346E8

Accessibility & contrast

On white

12.26
#2D149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D149F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D149F#FFFFFF#000000##FFFFFF
##2D149F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d149f;
/* rgb */ color: rgb(45, 20, 159);
/* oklch */ color: oklch(35.2% 0.200 276.9);
Tailwind
colors: {
  custom: {
    50: '#7959bd',
    500: '#2d149f',
    950: '#000000',
  },
}
SCSS
$custom: #2d149f;
$custom-light: #7959bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d149f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 250.791,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.19974,
    "h": 276.9
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#2D149F
secondary
#B1C846
accent
#F434D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D149F

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

Preview Lab → · Contrast checker → · Palette generator →

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