#2D1283#2D1283

#2D1283 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.169 H 281.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2D1283
RGBrgb(45, 18, 131)
HSLhsl(254, 76%, 29%)
HSVhsv(254, 86%, 51%)
CMYKcmyk(65.6%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.49, 43.47, -57.34)
CIE-LCHlch(18.49, 71.96, 307.17°)
OKLaboklab(31.72% 0.0346 -0.1654)
OKLCHoklch(31.72% 0.169 281.8)
XYZxyz(5.3939, 2.6288, 21.6915)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1283 #688312
analogous
#123083 #2D1283 #661283
triadic
#2D1283 #832D12 #12832D
tetradic
#2D1283 #831230 #688312 #128366
square
#2D1283 #831230 #688312 #128366
split-complementary
#2D1283 #836612 #308312
monochromatic
#09041B #1B0B4D #2D1283 #3F19B9 #582DE2

Accessibility & contrast

On white

13.76
#2D1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1283
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1283#FFFFFF#000000##FFFFFF
##2D12831.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1283;
/* rgb */ color: rgb(45, 18, 131);
/* oklch */ color: oklch(31.7% 0.169 281.8);
Tailwind
colors: {
  custom: {
    50: '#7356a8',
    500: '#2d1283',
    950: '#000000',
  },
}
SCSS
$custom: #2d1283;
$custom-light: #7356a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1283",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 254.336,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31722,
    "c": 0.16902,
    "h": 281.8
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#2D1283
secondary
#9AB838
accent
#F235C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1283

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

Preview Lab → · Contrast checker → · Palette generator →

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