#2D0C48#2D0C48

#2D0C48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.105 H 304.7°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2D0C48
RGBrgb(45, 12, 72)
HSLhsl(273, 71%, 16%)
HSVhsv(273, 83%, 28%)
CMYKcmyk(37.5%, 83.3%, 0%, 71.8%)
CIE-LABlab(11.20, 29.12, -30.27)
CIE-LCHlch(11.20, 42.00, 313.89°)
OKLaboklab(24.76% 0.0597 -0.0862)
OKLCHoklch(24.76% 0.105 304.7)
XYZxyz(2.3831, 1.2887, 6.2528)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C48 #27480C
analogous
#0F0C48 #2D0C48 #480C45
triadic
#2D0C48 #482D0C #0C482D
tetradic
#2D0C48 #480F0C #27480C #0C4548
square
#2D0C48 #480F0C #27480C #0C4548
split-complementary
#2D0C48 #45480C #0C480F
monochromatic
#10041A #10041A #2D0C48 #4E157C #6F1DB1

Accessibility & contrast

On white

16.70
#2D0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D0C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C48
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C48#FFFFFF#000000##FFFFFF
##2D0C481.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#281B29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0c48;
/* rgb */ color: rgb(45, 12, 72);
/* oklch */ color: oklch(24.8% 0.105 304.7);
Tailwind
colors: {
  custom: {
    50: '#694f7b',
    500: '#2d0c48',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c48;
$custom-light: #694f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c48",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 273,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24755,
    "c": 0.10486,
    "h": 304.7
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#2D0C48
secondary
#54842C
accent
#EE3A8B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2D0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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