#2D1462#2D1462

#2D1462 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.127 H 290.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2D1462
RGBrgb(45, 20, 98)
HSLhsl(259, 66%, 23%)
HSVhsv(259, 80%, 38%)
CMYKcmyk(54.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.17, 32.57, -41.46)
CIE-LCHlch(15.17, 52.72, 308.16°)
OKLaboklab(28.33% 0.0446 -0.1191)
OKLCHoklch(28.33% 0.127 290.5)
XYZxyz(3.5363, 1.9399, 11.7410)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1462 #496214
analogous
#142262 #2D1462 #541462
triadic
#2D1462 #622D14 #14622D
tetradic
#2D1462 #621422 #496214 #146254
square
#2D1462 #621422 #496214 #146254
split-complementary
#2D1462 #625414 #226214
monochromatic
#0C0519 #160A2F #2D1462 #441E95 #5C29C8

Accessibility & contrast

On white

15.13
#2D1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1462
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1462#FFFFFF#000000##FFFFFF
##2D14621.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#1A293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1462;
/* rgb */ color: rgb(45, 20, 98);
/* oklch */ color: oklch(28.3% 0.127 290.5);
Tailwind
colors: {
  custom: {
    50: '#6d548f',
    500: '#2d1462',
    950: '#000000',
  },
}
SCSS
$custom: #2d1462;
$custom-light: #6d548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1462",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 259.231,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28329,
    "c": 0.12714,
    "h": 290.5
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#2D1462
secondary
#7A9938
accent
#E93FB2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1462

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

Preview Lab → · Contrast checker → · Palette generator →

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