#2B0440#2B0440

#2B0440 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.106 H 309.7°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2B0440
RGBrgb(43, 4, 64)
HSLhsl(279, 88%, 13%)
HSVhsv(279, 94%, 25%)
CMYKcmyk(32.8%, 93.8%, 0%, 74.9%)
CIE-LABlab(8.74, 30.57, -28.64)
CIE-LCHlch(8.74, 41.89, 316.87°)
OKLaboklab(22.74% 0.0677 -0.0814)
OKLCHoklch(22.74% 0.106 309.7)
XYZxyz(1.9649, 0.9706, 4.9333)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0440 #194004
analogous
#0D0440 #2B0440 #400437
triadic
#2B0440 #402B04 #04402B
tetradic
#2B0440 #400D04 #194004 #043740
square
#2B0440 #400D04 #194004 #043740
split-complementary
#2B0440 #374004 #04400D
monochromatic
#13021D #13021D #2B0440 #52087A #780BB3

Accessibility & contrast

On white

17.58
#2B0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2B0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0440
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0440#FFFFFF#000000##FFFFFF
##2B04401.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#281423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2b0440;
/* rgb */ color: rgb(43, 4, 64);
/* oklch */ color: oklch(22.7% 0.106 309.7);
Tailwind
colors: {
  custom: {
    50: '#684a75',
    500: '#2b0440',
    950: '#000000',
  },
}
SCSS
$custom: #2b0440;
$custom-light: #684a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0440",
  "rgb": {
    "r": 43,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 279,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22735,
    "c": 0.10586,
    "h": 309.7
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#2B0440
secondary
#41811F
accent
#FE2974
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0440

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

Preview Lab → · Contrast checker → · Palette generator →

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