#2B0A42#2B0A42

#2B0A42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.100 H 307.0°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2B0A42
RGBrgb(43, 10, 66)
HSLhsl(275, 74%, 15%)
HSVhsv(275, 85%, 26%)
CMYKcmyk(34.8%, 84.8%, 0%, 74.1%)
CIE-LABlab(9.98, 28.03, -28.04)
CIE-LCHlch(9.98, 39.65, 314.99°)
OKLaboklab(23.66% 0.0601 -0.0797)
OKLCHoklch(23.66% 0.1 307)
XYZxyz(2.0880, 1.1240, 5.2602)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0A42 #21420A
analogous
#0F0A42 #2B0A42 #420A3D
triadic
#2B0A42 #422B0A #0A422B
tetradic
#2B0A42 #420F0A #21420A #0A3D42
square
#2B0A42 #420F0A #21420A #0A3D42
split-complementary
#2B0A42 #3D420A #0A420F
monochromatic
#11041B #11041B #2B0A42 #4E1277 #701AAC

Accessibility & contrast

On white

17.15
#2B0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0A42
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0A42#FFFFFF#000000##FFFFFF
##2B0A421.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#271825
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0a42;
/* rgb */ color: rgb(43, 10, 66);
/* oklch */ color: oklch(23.7% 0.100 307.0);
Tailwind
colors: {
  custom: {
    50: '#674d77',
    500: '#2b0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2b0a42;
$custom-light: #674d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0a42",
  "rgb": {
    "r": 43,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 275.357,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23661,
    "c": 0.09981,
    "h": 307
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#2B0A42
secondary
#4C7F29
accent
#F03783
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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