#2B1190#2B1190

#2B1190 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.185 H 278.4°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2B1190
RGBrgb(43, 17, 144)
HSLhsl(252, 79%, 32%)
HSVhsv(252, 88%, 56%)
CMYKcmyk(70.1%, 88.2%, 0%, 43.5%)
CIE-LABlab(19.75, 47.49, -63.41)
CIE-LCHlch(19.75, 79.22, 306.83°)
OKLaboklab(33% 0.027 -0.1831)
OKLCHoklch(33% 0.185 278.4)
XYZxyz(6.2291, 2.9276, 26.6170)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1190 #769011
analogous
#113790 #2B1190 #6B1190
triadic
#2B1190 #902B11 #11902B
tetradic
#2B1190 #901137 #769011 #11906B
square
#2B1190 #901137 #769011 #11906B
split-complementary
#2B1190 #906B11 #379011
monochromatic
#0A0423 #1B0B59 #2B1190 #3B17C7 #5934E7

Accessibility & contrast

On white

13.24
#2B1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1190
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1190#FFFFFF#000000##FFFFFF
##2B11901.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003493
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1190;
/* rgb */ color: rgb(43, 17, 144);
/* oklch */ color: oklch(33.0% 0.185 278.4);
Tailwind
colors: {
  custom: {
    50: '#7556b2',
    500: '#2b1190',
    950: '#000000',
  },
}
SCSS
$custom: #2b1190;
$custom-light: #7556b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1190",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 252.283,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32995,
    "c": 0.18508,
    "h": 278.4
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#2B1190
secondary
#A8C439
accent
#F532CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B1190

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

Preview Lab → · Contrast checker → · Palette generator →

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