#2B1547#2B1547

#2B1547 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.090 H 300.4°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2B1547
RGBrgb(43, 21, 71)
HSLhsl(266, 54%, 18%)
HSVhsv(266, 70%, 28%)
CMYKcmyk(39.4%, 70.4%, 0%, 72.2%)
CIE-LABlab(12.64, 23.28, -27.25)
CIE-LCHlch(12.64, 35.84, 310.50°)
OKLaboklab(25.69% 0.0455 -0.0774)
OKLCHoklch(25.69% 0.09 300.4)
XYZxyz(2.4015, 1.5048, 6.1240)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1547 #314715
analogous
#151847 #2B1547 #441547
triadic
#2B1547 #472B15 #15472B
tetradic
#2B1547 #471518 #314715 #154744
square
#2B1547 #471518 #314715 #154744
split-complementary
#2B1547 #474415 #184715
monochromatic
#0E0718 #0E0718 #2B1547 #482376 #6431A5

Accessibility & contrast

On white

16.14
#2B1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1547
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1547#FFFFFF#000000##FFFFFF
##2B15471.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#25202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1547;
/* rgb */ color: rgb(43, 21, 71);
/* oklch */ color: oklch(25.7% 0.090 300.4);
Tailwind
colors: {
  custom: {
    50: '#67547b',
    500: '#2b1547',
    950: '#000000',
  },
}
SCSS
$custom: #2b1547;
$custom-light: #67547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1547",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 266.4,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25694,
    "c": 0.0898,
    "h": 300.4
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#2B1547
secondary
#607F39
accent
#DE4A9D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1547

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

Preview Lab → · Contrast checker → · Palette generator →

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