#2D1263#2D1263

#2D1263 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.131 H 290.6°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2D1263
RGBrgb(45, 18, 99)
HSLhsl(260, 69%, 23%)
HSVhsv(260, 82%, 39%)
CMYKcmyk(54.5%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.91, 33.92, -42.55)
CIE-LCHlch(14.91, 54.42, 308.56°)
OKLaboklab(28.18% 0.046 -0.1223)
OKLCHoklch(28.18% 0.131 290.6)
XYZxyz(3.5500, 1.8912, 11.9799)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1263 #486312
analogous
#121F63 #2D1263 #551263
triadic
#2D1263 #632D12 #12632D
tetradic
#2D1263 #63121F #486312 #126355
square
#2D1263 #63121F #486312 #126355
split-complementary
#2D1263 #635512 #1F6312
monochromatic
#0C051A #15092F #2D1263 #451B97 #5C25CB

Accessibility & contrast

On white

15.24
#2D1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1263
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1263#FFFFFF#000000##FFFFFF
##2D12631.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1A293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1263;
/* rgb */ color: rgb(45, 18, 99);
/* oklch */ color: oklch(28.2% 0.131 290.6);
Tailwind
colors: {
  custom: {
    50: '#6d5390',
    500: '#2d1263',
    950: '#000000',
  },
}
SCSS
$custom: #2d1263;
$custom-light: #6d5390;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1263",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 260,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28176,
    "c": 0.13063,
    "h": 290.6
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#2D1263
secondary
#799B36
accent
#EC3CB1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2D1263

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

Preview Lab → · Contrast checker → · Palette generator →

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