#2B1788#2B1788

#2B1788 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.171 H 279.2°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2B1788
RGBrgb(43, 23, 136)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 53%)
CMYKcmyk(68.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.65, 42.55, -58.57)
CIE-LCHlch(19.65, 72.40, 306.00°)
OKLaboklab(32.65% 0.0273 -0.1691)
OKLCHoklch(32.65% 0.171 279.2)
XYZxyz(5.7452, 2.9035, 23.5454)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1788 #748817
analogous
#173C88 #2B1788 #631788
triadic
#2B1788 #882B17 #17882B
tetradic
#2B1788 #88173C #748817 #178863
square
#2B1788 #88173C #748817 #178863
split-complementary
#2B1788 #886317 #3C8817
monochromatic
#0A051F #1A0E54 #2B1788 #3C20BC #583BDE

Accessibility & contrast

On white

13.28
#2B1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1788
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1788#FFFFFF#000000##FFFFFF
##2B17881.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1788;
/* rgb */ color: rgb(43, 23, 136);
/* oklch */ color: oklch(32.6% 0.171 279.2);
Tailwind
colors: {
  custom: {
    50: '#7358ac',
    500: '#2b1788',
    950: '#000000',
  },
}
SCSS
$custom: #2b1788;
$custom-light: #7358ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1788",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 250.619,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32648,
    "c": 0.17134,
    "h": 279.2
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#2B1788
secondary
#A6BC3F
accent
#EE3ACE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1788

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

Preview Lab → · Contrast checker → · Palette generator →

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