#2A0B48#2A0B48

#2A0B48 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.105 H 301.9°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2A0B48
RGBrgb(42, 11, 72)
HSLhsl(270, 73%, 16%)
HSVhsv(270, 85%, 28%)
CMYKcmyk(41.7%, 84.7%, 0%, 71.8%)
CIE-LABlab(10.55, 28.98, -31.34)
CIE-LCHlch(10.55, 42.68, 312.76°)
OKLaboklab(24.2% 0.0558 -0.0894)
OKLCHoklch(24.2% 0.105 301.9)
XYZxyz(2.2439, 1.1995, 6.2429)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B48 #29480B
analogous
#0C0B48 #2A0B48 #480B48
triadic
#2A0B48 #482A0B #0B482A
tetradic
#2A0B48 #480C0B #29480B #0B4848
square
#2A0B48 #480C0B #29480B #0B4848
split-complementary
#2A0B48 #48480B #0B480C
monochromatic
#0F041B #0F041B #2A0B48 #49137D #681BB2

Accessibility & contrast

On white

16.94
#2A0B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B48
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B48#FFFFFF#000000##FFFFFF
##2A0B481.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#241B29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0b48;
/* rgb */ color: rgb(42, 11, 72);
/* oklch */ color: oklch(24.2% 0.105 301.9);
Tailwind
colors: {
  custom: {
    50: '#674e7c',
    500: '#2a0b48',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b48;
$custom-light: #674e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b48",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 270.492,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24201,
    "c": 0.1054,
    "h": 301.9
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#2A0B48
secondary
#57842A
accent
#F03892
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0B48

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

Preview Lab → · Contrast checker → · Palette generator →

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