#2B1A7D#2B1A7D

#2B1A7D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.155 H 280.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2B1A7D
RGBrgb(43, 26, 125)
HSLhsl(250, 66%, 30%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(65.6%, 79.2%, 0%, 51%)
CIE-LABlab(18.94, 37.57, -52.80)
CIE-LCHlch(18.94, 64.80, 305.43°)
OKLaboklab(31.78% 0.0289 -0.1524)
OKLCHoklch(31.78% 0.155 280.8)
XYZxyz(5.0662, 2.7327, 19.6585)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A7D #6C7D1A
analogous
#1A3B7D #2B1A7D #5D1A7D
triadic
#2B1A7D #7D2B1A #1A7D2B
tetradic
#2B1A7D #7D1A3B #6C7D1A #1A7D5D
square
#2B1A7D #7D1A3B #6C7D1A #1A7D5D
split-complementary
#2B1A7D #7D5D1A #3B7D1A
monochromatic
#090519 #1A0F4A #2B1A7D #3C25B0 #563BD6

Accessibility & contrast

On white

13.58
#2B1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1A7D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A7D#FFFFFF#000000##FFFFFF
##2B1A7D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1a7d;
/* rgb */ color: rgb(43, 26, 125);
/* oklch */ color: oklch(31.8% 0.155 280.8);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a7d;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a7d",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 250.303,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.15508,
    "h": 280.8
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#2B1A7D
secondary
#9EB142
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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