#2D1064#2D1064

#2D1064 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.134 H 290.7°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2D1064
RGBrgb(45, 16, 100)
HSLhsl(261, 72%, 23%)
HSVhsv(261, 84%, 39%)
CMYKcmyk(55%, 84%, 0%, 60.8%)
CIE-LABlab(14.67, 35.20, -43.60)
CIE-LCHlch(14.67, 56.04, 308.92°)
OKLaboklab(28.04% 0.0473 -0.1253)
OKLCHoklch(28.04% 0.134 290.7)
XYZxyz(3.5671, 1.8484, 12.2229)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1064 #476410
analogous
#101D64 #2D1064 #571064
triadic
#2D1064 #642D10 #10642D
tetradic
#2D1064 #64101D #476410 #106457
square
#2D1064 #64101D #476410 #106457
split-complementary
#2D1064 #645710 #1D6410
monochromatic
#0C041A #15082F #2D1064 #451899 #5C21CE

Accessibility & contrast

On white

15.33
#2D1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1064
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1064#FFFFFF#000000##FFFFFF
##2D10641.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#19283A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1064;
/* rgb */ color: rgb(45, 16, 100);
/* oklch */ color: oklch(28.0% 0.134 290.7);
Tailwind
colors: {
  custom: {
    50: '#6d5291',
    500: '#2d1064',
    950: '#000000',
  },
}
SCSS
$custom: #2d1064;
$custom-light: #6d5291;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1064",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 260.714,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28044,
    "c": 0.13394,
    "h": 290.7
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#2D1064
secondary
#789D33
accent
#EF39B0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2D1064

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

Preview Lab → · Contrast checker → · Palette generator →

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