#2B1984#2B1984

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

Color values

HEX#2B1984
RGBrgb(43, 25, 132)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 52%)
CMYKcmyk(67.4%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.53, 40.32, -56.25)
CIE-LCHlch(19.53, 69.21, 305.63°)
OKLaboklab(32.43% 0.0275 -0.1624)
OKLCHoklch(32.43% 0.165 279.6)
XYZxyz(5.5074, 2.8743, 22.0899)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1984 #728419
analogous
#193D84 #2B1984 #601984
triadic
#2B1984 #842B19 #19842B
tetradic
#2B1984 #84193D #728419 #198460
square
#2B1984 #84193D #728419 #198460
split-complementary
#2B1984 #846019 #3D8419
monochromatic
#09061D #1A0F51 #2B1984 #3C23B7 #583DDA

Accessibility & contrast

On white

13.33
#2B1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1984
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1984#FFFFFF#000000##FFFFFF
##2B19841.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1984;
/* rgb */ color: rgb(43, 25, 132);
/* oklch */ color: oklch(32.4% 0.165 279.6);
Tailwind
colors: {
  custom: {
    50: '#7259a9',
    500: '#2b1984',
    950: '#000000',
  },
}
SCSS
$custom: #2b1984;
$custom-light: #7259a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1984",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 250.093,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3243,
    "c": 0.16474,
    "h": 279.6
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1984

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

Preview Lab → · Contrast checker → · Palette generator →

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