#2B1574#2B1574

#2B1574 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.149 H 283.6°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2B1574
RGBrgb(43, 21, 116)
HSLhsl(254, 69%, 27%)
HSVhsv(254, 82%, 45%)
CMYKcmyk(62.9%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.04, 37.34, -50.16)
CIE-LCHlch(17.04, 62.53, 306.66°)
OKLaboklab(30.16% 0.0349 -0.1446)
OKLCHoklch(30.16% 0.149 283.6)
XYZxyz(4.4158, 2.3106, 16.7329)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1574 #5E7415
analogous
#152F74 #2B1574 #5B1574
triadic
#2B1574 #742B15 #15742B
tetradic
#2B1574 #74152F #5E7415 #15745B
square
#2B1574 #74152F #5E7415 #15745B
split-complementary
#2B1574 #745B15 #2F7415
monochromatic
#0A051A #180C40 #2B1574 #3E1EA8 #532BD9

Accessibility & contrast

On white

14.36
#2B1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1574
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1574#FFFFFF#000000##FFFFFF
##2B15741.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1574;
/* rgb */ color: rgb(43, 21, 116);
/* oklch */ color: oklch(30.2% 0.149 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f569d',
    500: '#2b1574',
    950: '#000000',
  },
}
SCSS
$custom: #2b1574;
$custom-light: #6f569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1574",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 253.895,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.14878,
    "h": 283.6
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#2B1574
secondary
#90AA3B
accent
#EC3CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1574

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

Preview Lab → · Contrast checker → · Palette generator →

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