#2D1273#2D1273

#2D1273 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.150 H 285.7°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1273
RGBrgb(45, 18, 115)
HSLhsl(257, 73%, 26%)
HSVhsv(257, 84%, 45%)
CMYKcmyk(60.9%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.64, 38.73, -50.17)
CIE-LCHlch(16.64, 63.38, 307.67°)
OKLaboklab(29.9% 0.0405 -0.1445)
OKLCHoklch(29.9% 0.15 285.7)
XYZxyz(4.3921, 2.2280, 16.4149)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1273 #587312
analogous
#122773 #2D1273 #5D1273
triadic
#2D1273 #732D12 #12732D
tetradic
#2D1273 #731227 #587312 #12735D
square
#2D1273 #731227 #587312 #12735D
split-complementary
#2D1273 #735D12 #277312
monochromatic
#0A041A #180A3E #2D1273 #421AA8 #5723DD

Accessibility & contrast

On white

14.53
#2D1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1273
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1273#FFFFFF#000000##FFFFFF
##2D12731.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#062F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1273;
/* rgb */ color: rgb(45, 18, 115);
/* oklch */ color: oklch(29.9% 0.150 285.7);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2d1273',
    950: '#000000',
  },
}
SCSS
$custom: #2d1273;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1273",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 256.701,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29903,
    "c": 0.1501,
    "h": 285.7
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2D1273
secondary
#8AAA37
accent
#F038BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1273

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

Preview Lab → · Contrast checker → · Palette generator →

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