#2B1558#2B1558

#2B1558 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.113 H 292.3°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2B1558
RGBrgb(43, 21, 88)
HSLhsl(260, 61%, 21%)
HSVhsv(260, 76%, 35%)
CMYKcmyk(51.1%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.14, 28.54, -36.46)
CIE-LCHlch(14.14, 46.30, 308.05°)
OKLaboklab(27.24% 0.0428 -0.1045)
OKLCHoklch(27.24% 0.113 292.3)
XYZxyz(3.0254, 1.7544, 9.4099)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1558 #425815
analogous
#152158 #2B1558 #4D1558
triadic
#2B1558 #582B15 #15582B
tetradic
#2B1558 #581521 #425815 #15584D
square
#2B1558 #581521 #425815 #15584D
split-complementary
#2B1558 #584D15 #215815
monochromatic
#0C0619 #130927 #2B1558 #432189 #5B2DBB

Accessibility & contrast

On white

15.54
#2B1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B1558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1558
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1558#FFFFFF#000000##FFFFFF
##2B15581.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1D2634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1558;
/* rgb */ color: rgb(43, 21, 88);
/* oklch */ color: oklch(27.2% 0.113 292.3);
Tailwind
colors: {
  custom: {
    50: '#6a5488',
    500: '#2b1558',
    950: '#000000',
  },
}
SCSS
$custom: #2b1558;
$custom-light: #6a5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1558",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 259.701,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27244,
    "c": 0.11291,
    "h": 292.3
  },
  "luminance": 0.01755
}

Semantic roles & 50–950 ramp

primary
#2B1558
secondary
#739039
accent
#E543B0
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1558

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

Preview Lab → · Contrast checker → · Palette generator →

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