#2B1648#2B1648

#2B1648 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.090 H 299.4°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1648
RGBrgb(43, 22, 72)
HSLhsl(265, 53%, 18%)
HSVhsv(265, 69%, 28%)
CMYKcmyk(40.3%, 69.4%, 0%, 71.8%)
CIE-LABlab(12.96, 22.94, -27.43)
CIE-LCHlch(12.96, 35.76, 309.91°)
OKLaboklab(25.95% 0.044 -0.078)
OKLCHoklch(25.95% 0.09 299.4)
XYZxyz(2.4526, 1.5553, 6.3006)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1648 #334816
analogous
#161A48 #2B1648 #441648
triadic
#2B1648 #482B16 #16482B
tetradic
#2B1648 #48161A #334816 #164844
square
#2B1648 #48161A #334816 #164844
split-complementary
#2B1648 #484416 #1A4816
monochromatic
#0E0717 #0F0819 #2B1648 #472477 #6333A6

Accessibility & contrast

On white

16.02
#2B1648 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1648 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1648
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1648#FFFFFF#000000##FFFFFF
##2B16481.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#25212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1648;
/* rgb */ color: rgb(43, 22, 72);
/* oklch */ color: oklch(25.9% 0.090 299.4);
Tailwind
colors: {
  custom: {
    50: '#67547b',
    500: '#2b1648',
    950: '#000000',
  },
}
SCSS
$custom: #2b1648;
$custom-light: #67547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1648",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 72
  },
  "hsl": {
    "h": 265.2,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25949,
    "c": 0.08953,
    "h": 299.4
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#2B1648
secondary
#627F3A
accent
#DD4BA0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B1648

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

Preview Lab → · Contrast checker → · Palette generator →

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