#2B1B79#2B1B79

#2B1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.149 H 281.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2B1B79
RGBrgb(43, 27, 121)
HSLhsl(250, 64%, 29%)
HSVhsv(250, 78%, 47%)
CMYKcmyk(64.5%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.70, 35.72, -50.63)
CIE-LCHlch(18.70, 61.97, 305.20°)
OKLaboklab(31.49% 0.0293 -0.1461)
OKLCHoklch(31.49% 0.149 281.4)
XYZxyz(4.8383, 2.6776, 18.3473)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B79 #69791B
analogous
#1B3A79 #2B1B79 #5A1B79
triadic
#2B1B79 #792B1B #1B792B
tetradic
#2B1B79 #791B3A #69791B #1B795A
square
#2B1B79 #791B3A #69791B #1B795A
split-complementary
#2B1B79 #795A1B #3A791B
monochromatic
#090619 #191047 #2B1B79 #3D26AB #553BD3

Accessibility & contrast

On white

13.68
#2B1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B79
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B79#FFFFFF#000000##FFFFFF
##2B1B791.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1b79;
/* rgb */ color: rgb(43, 27, 121);
/* oklch */ color: oklch(31.5% 0.149 281.4);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#2b1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b79;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b79",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 250.213,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31489,
    "c": 0.14898,
    "h": 281.4
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#2B1B79
secondary
#9BAD43
accent
#E741CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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