#2B1D52#2B1D52

#2B1D52 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.093 H 291.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2B1D52
RGBrgb(43, 29, 82)
HSLhsl(256, 48%, 22%)
HSVhsv(256, 65%, 32%)
CMYKcmyk(47.6%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.49, 21.52, -30.20)
CIE-LCHlch(15.49, 37.08, 305.48°)
OKLaboklab(28.06% 0.0339 -0.0861)
OKLCHoklch(28.06% 0.093 291.5)
XYZxyz(2.9582, 2.0014, 8.2115)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D52 #44521D
analogous
#1D2A52 #2B1D52 #461D52
triadic
#2B1D52 #522B1D #1D522B
tetradic
#2B1D52 #521D2A #44521D #1D5246
square
#2B1D52 #521D2A #44521D #1D5246
split-complementary
#2B1D52 #52461D #2A521D
monochromatic
#0C0817 #130D25 #2B1D52 #432D7F #5A3DAC

Accessibility & contrast

On white

15.00
#2B1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D52
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D52#FFFFFF#000000##FFFFFF
##2B1D521.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#012651
Tritanopia (blue-blind)
#202934
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1d52;
/* rgb */ color: rgb(43, 29, 82);
/* oklch */ color: oklch(28.1% 0.093 291.5);
Tailwind
colors: {
  custom: {
    50: '#685983',
    500: '#2b1d52',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d52;
$custom-light: #685983;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d52",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 255.849,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28057,
    "c": 0.09252,
    "h": 291.5
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#2B1D52
secondary
#758744
accent
#D750B4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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