#2B1A7C#2B1A7C

#2B1A7C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.154 H 280.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2B1A7C
RGBrgb(43, 26, 124)
HSLhsl(250, 65%, 29%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(65.3%, 79%, 0%, 51.4%)
CIE-LABlab(18.83, 37.25, -52.34)
CIE-LCHlch(18.83, 64.24, 305.44°)
OKLaboklab(31.68% 0.0292 -0.151)
OKLCHoklch(31.68% 0.154 280.9)
XYZxyz(5.0026, 2.7072, 19.3238)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A7C #6B7C1A
analogous
#1A3A7C #2B1A7C #5C1A7C
triadic
#2B1A7C #7C2B1A #1A7C2B
tetradic
#2B1A7C #7C1A3A #6B7C1A #1A7C5C
square
#2B1A7C #7C1A3A #6B7C1A #1A7C5C
split-complementary
#2B1A7C #7C5C1A #3A7C1A
monochromatic
#090519 #190F49 #2B1A7C #3D25AF #563BD6

Accessibility & contrast

On white

13.62
#2B1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A7C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A7C#FFFFFF#000000##FFFFFF
##2B1A7C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1a7c;
/* rgb */ color: rgb(43, 26, 124);
/* oklch */ color: oklch(31.7% 0.154 280.9);
Tailwind
colors: {
  custom: {
    50: '#7059a3',
    500: '#2b1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a7c;
$custom-light: #7059a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a7c",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 250.408,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31676,
    "c": 0.15383,
    "h": 280.9
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#2B1A7C
secondary
#9DB042
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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