#2B1477#2B1477

#2B1477 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.153 H 283.0°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1477
RGBrgb(43, 20, 119)
HSLhsl(254, 71%, 27%)
HSVhsv(254, 83%, 47%)
CMYKcmyk(63.9%, 83.2%, 0%, 53.3%)
CIE-LABlab(17.20, 38.76, -51.82)
CIE-LCHlch(17.20, 64.71, 306.79°)
OKLaboklab(30.38% 0.0346 -0.1494)
OKLCHoklch(30.38% 0.153 283)
XYZxyz(4.5752, 2.3455, 17.6608)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1477 #607714
analogous
#142F77 #2B1477 #5C1477
triadic
#2B1477 #772B14 #14772B
tetradic
#2B1477 #77142F #607714 #14775C
square
#2B1477 #77142F #607714 #14775C
split-complementary
#2B1477 #775C14 #2F7714
monochromatic
#09041A #180B43 #2B1477 #3E1DAB #532ADB

Accessibility & contrast

On white

14.29
#2B1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1477
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1477#FFFFFF#000000##FFFFFF
##2B14771.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1477;
/* rgb */ color: rgb(43, 20, 119);
/* oklch */ color: oklch(30.4% 0.153 283.0);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2b1477',
    950: '#000000',
  },
}
SCSS
$custom: #2b1477;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1477",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 253.939,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.15339,
    "h": 283
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#2B1477
secondary
#92AD3A
accent
#EE3AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1477

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

Preview Lab → · Contrast checker → · Palette generator →

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