#2B1885#2B1885

#2B1885 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.167 H 279.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2B1885
RGBrgb(43, 24, 133)
HSLhsl(250, 69%, 31%)
HSVhsv(250, 82%, 52%)
CMYKcmyk(67.7%, 82%, 0%, 47.8%)
CIE-LABlab(19.47, 41.14, -56.98)
CIE-LCHlch(19.47, 70.28, 305.82°)
OKLaboklab(32.42% 0.0278 -0.1645)
OKLCHoklch(32.42% 0.167 279.6)
XYZxyz(5.5552, 2.8599, 22.4450)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1885 #728518
analogous
#183B85 #2B1885 #611885
triadic
#2B1885 #852B18 #18852B
tetradic
#2B1885 #85183B #728518 #188561
square
#2B1885 #85183B #728518 #188561
split-complementary
#2B1885 #856118 #3B8518
monochromatic
#09051D #1A0F51 #2B1885 #3C21B9 #583CDC

Accessibility & contrast

On white

13.36
#2B1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1885
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1885#FFFFFF#000000##FFFFFF
##2B18851.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1885;
/* rgb */ color: rgb(43, 24, 133);
/* oklch */ color: oklch(32.4% 0.167 279.6);
Tailwind
colors: {
  custom: {
    50: '#7259aa',
    500: '#2b1885',
    950: '#000000',
  },
}
SCSS
$custom: #2b1885;
$custom-light: #7259aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1885",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 250.459,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32422,
    "c": 0.16686,
    "h": 279.6
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#2B1885
secondary
#A4B940
accent
#EC3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1885

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

Preview Lab → · Contrast checker → · Palette generator →

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