#2B1570#2B1570

#2B1570 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.144 H 284.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2B1570
RGBrgb(43, 21, 112)
HSLhsl(255, 68%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(61.6%, 81.2%, 0%, 56.1%)
CIE-LABlab(16.60, 36.09, -48.30)
CIE-LCHlch(16.60, 60.29, 306.77°)
OKLaboklab(29.72% 0.0362 -0.1392)
OKLCHoklch(29.72% 0.144 284.6)
XYZxyz(4.1882, 2.2195, 15.5338)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1570 #5A7015
analogous
#152D70 #2B1570 #581570
triadic
#2B1570 #702B15 #15702B
tetradic
#2B1570 #70152D #5A7015 #157058
square
#2B1570 #70152D #5A7015 #157058
split-complementary
#2B1570 #705815 #2D7015
monochromatic
#0A051A #170B3C #2B1570 #3F1FA4 #5329D7

Accessibility & contrast

On white

14.54
#2B1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1570
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1570#FFFFFF#000000##FFFFFF
##2B15701.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#033042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1570;
/* rgb */ color: rgb(43, 21, 112);
/* oklch */ color: oklch(29.7% 0.144 284.6);
Tailwind
colors: {
  custom: {
    50: '#6e569a',
    500: '#2b1570',
    950: '#000000',
  },
}
SCSS
$custom: #2b1570;
$custom-light: #6e569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1570",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 254.505,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29723,
    "c": 0.14381,
    "h": 284.6
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2B1570
secondary
#8CA63B
accent
#EB3DC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1570

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

Preview Lab → · Contrast checker → · Palette generator →

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