#2B1689#2B1689

#2B1689 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.173 H 279.1°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2B1689
RGBrgb(43, 22, 137)
HSLhsl(251, 72%, 31%)
HSVhsv(251, 84%, 54%)
CMYKcmyk(68.6%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.61, 43.32, -59.27)
CIE-LCHlch(19.61, 73.42, 306.16°)
OKLaboklab(32.65% 0.0275 -0.1712)
OKLCHoklch(32.65% 0.173 279.1)
XYZxyz(5.7971, 2.8931, 23.9150)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1689 #748916
analogous
#163A89 #2B1689 #641689
triadic
#2B1689 #892B16 #16892B
tetradic
#2B1689 #89163A #748916 #168964
square
#2B1689 #89163A #748916 #168964
split-complementary
#2B1689 #896416 #3A8916
monochromatic
#0A0520 #1A0E54 #2B1689 #3C1EBE #583ADF

Accessibility & contrast

On white

13.30
#2B1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1689
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1689#FFFFFF#000000##FFFFFF
##2B16891.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1689;
/* rgb */ color: rgb(43, 22, 137);
/* oklch */ color: oklch(32.7% 0.173 279.1);
Tailwind
colors: {
  custom: {
    50: '#7358ad',
    500: '#2b1689',
    950: '#000000',
  },
}
SCSS
$custom: #2b1689;
$custom-light: #7358ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1689",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 250.957,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32653,
    "c": 0.17335,
    "h": 279.1
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#2B1689
secondary
#A6BD3E
accent
#EF39CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1689

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

Preview Lab → · Contrast checker → · Palette generator →

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