#2B1759#2B1759

#2B1759 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.112 H 291.2°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2B1759
RGBrgb(43, 23, 89)
HSLhsl(258, 59%, 22%)
HSVhsv(258, 74%, 35%)
CMYKcmyk(51.7%, 74.2%, 0%, 65.1%)
CIE-LABlab(14.67, 27.66, -36.27)
CIE-LCHlch(14.67, 45.62, 307.33°)
OKLaboklab(27.65% 0.0404 -0.104)
OKLCHoklch(27.65% 0.112 291.2)
XYZxyz(3.1053, 1.8475, 9.6422)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1759 #455917
analogous
#172459 #2B1759 #4C1759
triadic
#2B1759 #592B17 #17592B
tetradic
#2B1759 #591724 #455917 #17594C
square
#2B1759 #591724 #455917 #17594C
split-complementary
#2B1759 #594C17 #245917
monochromatic
#0C0618 #140A28 #2B1759 #42248A #5A30BA

Accessibility & contrast

On white

15.33
#2B1759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1759
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1759#FFFFFF#000000##FFFFFF
##2B17591.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#1C2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1759;
/* rgb */ color: rgb(43, 23, 89);
/* oklch */ color: oklch(27.6% 0.112 291.2);
Tailwind
colors: {
  custom: {
    50: '#6a5689',
    500: '#2b1759',
    950: '#000000',
  },
}
SCSS
$custom: #2b1759;
$custom-light: #6a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1759",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 258.182,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27647,
    "c": 0.11155,
    "h": 291.2
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#2B1759
secondary
#76903C
accent
#E246B3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1759

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

Preview Lab → · Contrast checker → · Palette generator →

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