#2B2154#2B2154

#2B2154 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.089 H 288.6°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2B2154
RGBrgb(43, 33, 84)
HSLhsl(252, 44%, 23%)
HSVhsv(252, 61%, 33%)
CMYKcmyk(48.8%, 60.7%, 0%, 67.1%)
CIE-LABlab(16.71, 19.46, -29.60)
CIE-LCHlch(16.71, 35.42, 303.32°)
OKLaboklab(29% 0.0284 -0.0843)
OKLCHoklch(29% 0.089 288.6)
XYZxyz(3.1399, 2.2413, 8.6530)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2154 #4A5421
analogous
#213054 #2B2154 #442154
triadic
#2B2154 #542B21 #21542B
tetradic
#2B2154 #542130 #4A5421 #215444
square
#2B2154 #542130 #4A5421 #215444
split-complementary
#2B2154 #544421 #305421
monochromatic
#0B0916 #151028 #2B2154 #413280 #5844AC

Accessibility & contrast

On white

14.50
#2B2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2154
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2154#FFFFFF#000000##FFFFFF
##2B21541.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052A56
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#1E2C37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b2154;
/* rgb */ color: rgb(43, 33, 84);
/* oklch */ color: oklch(29.0% 0.089 288.6);
Tailwind
colors: {
  custom: {
    50: '#685c84',
    500: '#2b2154',
    950: '#000000',
  },
}
SCSS
$custom: #2b2154;
$custom-light: #685c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2154",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 251.765,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28999,
    "c": 0.08898,
    "h": 288.6
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#2B2154
secondary
#7C8849
accent
#D354BA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2B2154

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

Preview Lab → · Contrast checker → · Palette generator →

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