#2D1062#2D1062

#2D1062 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.132 H 291.4°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2D1062
RGBrgb(45, 16, 98)
HSLhsl(261, 72%, 22%)
HSVhsv(261, 84%, 38%)
CMYKcmyk(54.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.46, 34.61, -42.62)
CIE-LCHlch(14.46, 54.90, 309.08°)
OKLaboklab(27.83% 0.048 -0.1225)
OKLCHoklch(27.83% 0.132 291.4)
XYZxyz(3.4715, 1.8102, 11.7194)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1062 #456210
analogous
#101C62 #2D1062 #561062
triadic
#2D1062 #622D10 #10622D
tetradic
#2D1062 #62101C #456210 #106256
square
#2D1062 #62101C #456210 #106256
split-complementary
#2D1062 #625610 #1C6210
monochromatic
#0C041A #15072D #2D1062 #451997 #5D21CB

Accessibility & contrast

On white

15.42
#2D1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1062
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1062#FFFFFF#000000##FFFFFF
##2D10621.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#1B2839
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1062;
/* rgb */ color: rgb(45, 16, 98);
/* oklch */ color: oklch(27.8% 0.132 291.4);
Tailwind
colors: {
  custom: {
    50: '#6d5290',
    500: '#2d1062',
    950: '#000000',
  },
}
SCSS
$custom: #2d1062;
$custom-light: #6d5290;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1062",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 261.22,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27831,
    "c": 0.13152,
    "h": 291.4
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#2D1062
secondary
#769B33
accent
#EF39AE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2D1062

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

Preview Lab → · Contrast checker → · Palette generator →

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