#2B1447#2B1447

#2B1447 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.091 H 300.8°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2B1447
RGBrgb(43, 20, 71)
HSLhsl(267, 56%, 18%)
HSVhsv(267, 72%, 28%)
CMYKcmyk(39.4%, 71.8%, 0%, 72.2%)
CIE-LABlab(12.41, 23.90, -27.62)
CIE-LCHlch(12.41, 36.53, 310.87°)
OKLaboklab(25.53% 0.0468 -0.0785)
OKLCHoklch(25.53% 0.091 300.8)
XYZxyz(2.3835, 1.4688, 6.1180)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1447 #304714
analogous
#141647 #2B1447 #441447
triadic
#2B1447 #472B14 #14472B
tetradic
#2B1447 #471416 #304714 #144744
square
#2B1447 #471416 #304714 #144744
split-complementary
#2B1447 #474414 #164714
monochromatic
#0E0718 #0E0718 #2B1447 #482177 #652FA6

Accessibility & contrast

On white

16.23
#2B1447 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B1447 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1447
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1447#FFFFFF#000000##FFFFFF
##2B14471.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#251F2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b1447;
/* rgb */ color: rgb(43, 20, 71);
/* oklch */ color: oklch(25.5% 0.091 300.8);
Tailwind
colors: {
  custom: {
    50: '#67537b',
    500: '#2b1447',
    950: '#000000',
  },
}
SCSS
$custom: #2b1447;
$custom-light: #67537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1447",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 71
  },
  "hsl": {
    "h": 267.059,
    "s": 56.044,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25527,
    "c": 0.09143,
    "h": 300.8
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#2B1447
secondary
#5F7F38
accent
#DF489B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1447

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

Preview Lab → · Contrast checker → · Palette generator →

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