#2D0948#2D0948

#2D0948 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.108 H 305.4°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#2D0948
RGBrgb(45, 9, 72)
HSLhsl(274, 78%, 16%)
HSVhsv(274, 88%, 28%)
CMYKcmyk(37.5%, 87.5%, 0%, 71.8%)
CIE-LABlab(10.71, 30.51, -31.06)
CIE-LCHlch(10.71, 43.53, 314.49°)
OKLaboklab(24.42% 0.0628 -0.0885)
OKLCHoklch(24.42% 0.108 305.4)
XYZxyz(2.3493, 1.2212, 6.2416)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0948 #244809
analogous
#0D0948 #2D0948 #480943
triadic
#2D0948 #482D09 #09482D
tetradic
#2D0948 #480D09 #244809 #094348
square
#2D0948 #480D09 #244809 #094348
split-complementary
#2D0948 #434809 #09480D
monochromatic
#11031B #11031B #2D0948 #4F107E #7117B5

Accessibility & contrast

On white

16.88
#2D0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2D0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0948
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0948#FFFFFF#000000##FFFFFF
##2D09481.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#281A29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0948;
/* rgb */ color: rgb(45, 9, 72);
/* oklch */ color: oklch(24.4% 0.108 305.4);
Tailwind
colors: {
  custom: {
    50: '#6a4d7c',
    500: '#2d0948',
    950: '#000000',
  },
}
SCSS
$custom: #2d0948;
$custom-light: #6a4d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0948",
  "rgb": {
    "r": 45,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 274.286,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24415,
    "c": 0.10849,
    "h": 305.4
  },
  "luminance": 0.01221
}

Semantic roles & 50–950 ramp

primary
#2D0948
secondary
#508527
accent
#F43486
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2D0948

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

Preview Lab → · Contrast checker → · Palette generator →

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