#2B2152#2B2152

#2B2152 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.086 H 289.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2B2152
RGBrgb(43, 33, 82)
HSLhsl(252, 43%, 23%)
HSVhsv(252, 60%, 32%)
CMYKcmyk(47.6%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.55, 18.79, -28.49)
CIE-LCHlch(16.55, 34.13, 303.40°)
OKLaboklab(28.84% 0.0284 -0.0811)
OKLCHoklch(28.84% 0.086 289.3)
XYZxyz(3.0627, 2.2104, 8.2463)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2152 #485221
analogous
#212F52 #2B2152 #442152
triadic
#2B2152 #522B21 #21522B
tetradic
#2B2152 #52212F #485221 #215244
square
#2B2152 #52212F #485221 #215244
split-complementary
#2B2152 #524421 #2F5221
monochromatic
#0B0916 #140F26 #2B2152 #42337E #5944A9

Accessibility & contrast

On white

14.56
#2B2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2152
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2152#FFFFFF#000000##FFFFFF
##2B21521.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#092851
Tritanopia (blue-blind)
#202C36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b2152;
/* rgb */ color: rgb(43, 33, 82);
/* oklch */ color: oklch(28.8% 0.086 289.3);
Tailwind
colors: {
  custom: {
    50: '#675c83',
    500: '#2b2152',
    950: '#000000',
  },
}
SCSS
$custom: #2b2152;
$custom-light: #675c83;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2152",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 252.245,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28839,
    "c": 0.08588,
    "h": 289.3
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#2B2152
secondary
#7A8649
accent
#D255B9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2B2152

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

Preview Lab → · Contrast checker → · Palette generator →

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