#2B1A74#2B1A74

#2B1A74 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.144 H 282.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1A74
RGBrgb(43, 26, 116)
HSLhsl(251, 63%, 28%)
HSVhsv(251, 78%, 45%)
CMYKcmyk(62.9%, 77.6%, 0%, 54.5%)
CIE-LABlab(17.98, 34.66, -48.62)
CIE-LCHlch(17.98, 59.71, 305.48°)
OKLaboklab(30.82% 0.0314 -0.1402)
OKLCHoklch(30.82% 0.144 282.6)
XYZxyz(4.5171, 2.5130, 16.7666)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A74 #63741A
analogous
#1A3674 #2B1A74 #581A74
triadic
#2B1A74 #742B1A #1A742B
tetradic
#2B1A74 #741A36 #63741A #1A7458
square
#2B1A74 #741A36 #63741A #1A7458
split-complementary
#2B1A74 #74581A #36741A
monochromatic
#090619 #180F42 #2B1A74 #3E25A6 #5436D2

Accessibility & contrast

On white

13.98
#2B1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A74
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A74#FFFFFF#000000##FFFFFF
##2B1A741.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1a74;
/* rgb */ color: rgb(43, 26, 116);
/* oklch */ color: oklch(30.8% 0.144 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e599d',
    500: '#2b1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a74;
$custom-light: #6e599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a74",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 251.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30819,
    "c": 0.14363,
    "h": 282.6
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#2B1A74
secondary
#95A941
accent
#E641C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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