#2B1985#2B1985

#2B1985 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.166 H 279.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1985
RGBrgb(43, 25, 133)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 52%)
CMYKcmyk(67.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(19.65, 40.63, -56.70)
CIE-LCHlch(19.65, 69.76, 305.63°)
OKLaboklab(32.54% 0.0272 -0.1637)
OKLCHoklch(32.54% 0.166 279.4)
XYZxyz(5.5762, 2.9019, 22.4520)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1985 #738519
analogous
#193D85 #2B1985 #611985
triadic
#2B1985 #852B19 #19852B
tetradic
#2B1985 #85193D #738519 #198561
square
#2B1985 #85193D #738519 #198561
split-complementary
#2B1985 #856119 #3D8519
monochromatic
#0A061E #1A0F51 #2B1985 #3C23B9 #583EDB

Accessibility & contrast

On white

13.29
#2B1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1985
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1985#FFFFFF#000000##FFFFFF
##2B19851.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1985;
/* rgb */ color: rgb(43, 25, 133);
/* oklch */ color: oklch(32.5% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#7259aa',
    500: '#2b1985',
    950: '#000000',
  },
}
SCSS
$custom: #2b1985;
$custom-light: #7259aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1985",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 250,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32542,
    "c": 0.16597,
    "h": 279.4
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#2B1985
secondary
#A5B941
accent
#EB3DCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1985

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

Preview Lab → · Contrast checker → · Palette generator →

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