#2B1A7E#2B1A7E

#2B1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.156 H 280.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2B1A7E
RGBrgb(43, 26, 126)
HSLhsl(250, 66%, 30%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(65.9%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.05, 37.89, -53.25)
CIE-LCHlch(19.05, 65.36, 305.43°)
OKLaboklab(31.89% 0.0287 -0.1537)
OKLCHoklch(31.89% 0.156 280.6)
XYZxyz(5.1304, 2.7583, 19.9967)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A7E #6D7E1A
analogous
#1A3B7E #2B1A7E #5D1A7E
triadic
#2B1A7E #7E2B1A #1A7E2B
tetradic
#2B1A7E #7E1A3B #6D7E1A #1A7E5D
square
#2B1A7E #7E1A3B #6D7E1A #1A7E5D
split-complementary
#2B1A7E #7E5D1A #3B7E1A
monochromatic
#090519 #1A104B #2B1A7E #3C24B1 #563CD7

Accessibility & contrast

On white

13.53
#2B1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A7E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A7E#FFFFFF#000000##FFFFFF
##2B1A7E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1a7e;
/* rgb */ color: rgb(43, 26, 126);
/* oklch */ color: oklch(31.9% 0.156 280.6);
Tailwind
colors: {
  custom: {
    50: '#7159a4',
    500: '#2b1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a7e;
$custom-light: #7159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a7e",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 250.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31893,
    "c": 0.15634,
    "h": 280.6
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#2B1A7E
secondary
#9FB242
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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