#2D1262#2D1262

#2D1262 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.129 H 291.0°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2D1262
RGBrgb(45, 18, 98)
HSLhsl(260, 69%, 23%)
HSVhsv(260, 82%, 38%)
CMYKcmyk(54.1%, 81.6%, 0%, 61.6%)
CIE-LABlab(14.80, 33.62, -42.06)
CIE-LCHlch(14.80, 53.84, 308.64°)
OKLaboklab(28.07% 0.0463 -0.1208)
OKLCHoklch(28.07% 0.129 291)
XYZxyz(3.5025, 1.8722, 11.7297)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1262 #476212
analogous
#121F62 #2D1262 #551262
triadic
#2D1262 #622D12 #12622D
tetradic
#2D1262 #62121F #476212 #126255
square
#2D1262 #62121F #476212 #126255
split-complementary
#2D1262 #625512 #1F6212
monochromatic
#0C051A #15092E #2D1262 #451B96 #5C25C9

Accessibility & contrast

On white

15.28
#2D1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1262
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1262#FFFFFF#000000##FFFFFF
##2D12621.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1262;
/* rgb */ color: rgb(45, 18, 98);
/* oklch */ color: oklch(28.1% 0.129 291.0);
Tailwind
colors: {
  custom: {
    50: '#6d538f',
    500: '#2d1262',
    950: '#000000',
  },
}
SCSS
$custom: #2d1262;
$custom-light: #6d538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1262",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 260.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28071,
    "c": 0.1294,
    "h": 291
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#2D1262
secondary
#789A36
accent
#EC3CB0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1262

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

Preview Lab → · Contrast checker → · Palette generator →

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