#2D0B48#2D0B48

#2D0B48 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.106 H 305.0°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2D0B48
RGBrgb(45, 11, 72)
HSLhsl(273, 73%, 16%)
HSVhsv(273, 85%, 28%)
CMYKcmyk(37.5%, 84.7%, 0%, 71.8%)
CIE-LABlab(11.03, 29.60, -30.54)
CIE-LCHlch(11.03, 42.53, 314.10°)
OKLaboklab(24.64% 0.0608 -0.087)
OKLCHoklch(24.64% 0.106 305)
XYZxyz(2.3713, 1.2651, 6.2489)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0B48 #26480B
analogous
#0F0B48 #2D0B48 #480B45
triadic
#2D0B48 #482D0B #0B482D
tetradic
#2D0B48 #480F0B #26480B #0B4548
square
#2D0B48 #480F0B #26480B #0B4548
split-complementary
#2D0B48 #45480B #0B480F
monochromatic
#11041B #11041B #2D0B48 #4E137D #6F1BB2

Accessibility & contrast

On white

16.76
#2D0B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D0B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0B48
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0B48#FFFFFF#000000##FFFFFF
##2D0B481.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d0b48;
/* rgb */ color: rgb(45, 11, 72);
/* oklch */ color: oklch(24.6% 0.106 305.0);
Tailwind
colors: {
  custom: {
    50: '#694e7b',
    500: '#2d0b48',
    950: '#000000',
  },
}
SCSS
$custom: #2d0b48;
$custom-light: #694e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0b48",
  "rgb": {
    "r": 45,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 273.443,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24637,
    "c": 0.10611,
    "h": 305
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#2D0B48
secondary
#52842A
accent
#F03889
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2D0B48

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

Preview Lab → · Contrast checker → · Palette generator →

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