#2B1889#2B1889

#2B1889 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.172 H 278.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2B1889
RGBrgb(43, 24, 137)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 82%, 54%)
CMYKcmyk(68.6%, 82.5%, 0%, 46.3%)
CIE-LABlab(19.93, 42.38, -58.74)
CIE-LCHlch(19.93, 72.43, 305.81°)
OKLaboklab(32.88% 0.0265 -0.1696)
OKLCHoklch(32.88% 0.172 278.9)
XYZxyz(5.8368, 2.9725, 23.9282)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1889 #768918
analogous
#183E89 #2B1889 #641889
triadic
#2B1889 #892B18 #18892B
tetradic
#2B1889 #89183E #768918 #188964
square
#2B1889 #89183E #768918 #188964
split-complementary
#2B1889 #896418 #3E8918
monochromatic
#0A0621 #1B0F55 #2B1889 #3B21BD #593EDD

Accessibility & contrast

On white

13.17
#2B1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1889
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1889#FFFFFF#000000##FFFFFF
##2B18891.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1889;
/* rgb */ color: rgb(43, 24, 137);
/* oklch */ color: oklch(32.9% 0.172 278.9);
Tailwind
colors: {
  custom: {
    50: '#7359ad',
    500: '#2b1889',
    950: '#000000',
  },
}
SCSS
$custom: #2b1889;
$custom-light: #7359ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1889",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 250.088,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32876,
    "c": 0.1717,
    "h": 278.9
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#2B1889
secondary
#A8BD40
accent
#ED3BCF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1889

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

Preview Lab → · Contrast checker → · Palette generator →

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