#2B1473#2B1473

#2B1473 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.148 H 284.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2B1473
RGBrgb(43, 20, 115)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(62.6%, 82.6%, 0%, 54.9%)
CIE-LABlab(16.75, 37.53, -49.99)
CIE-LCHlch(16.75, 62.51, 306.90°)
OKLaboklab(29.93% 0.0359 -0.1441)
OKLCHoklch(29.93% 0.148 284)
XYZxyz(4.3400, 2.2514, 16.4222)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1473 #5C7314
analogous
#142D73 #2B1473 #5B1473
triadic
#2B1473 #732B14 #14732B
tetradic
#2B1473 #73142D #5C7314 #14735B
square
#2B1473 #73142D #5C7314 #14735B
split-complementary
#2B1473 #735B14 #2D7314
monochromatic
#0A051A #180B3F #2B1473 #3E1DA7 #5328DA

Accessibility & contrast

On white

14.48
#2B1473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1473
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1473#FFFFFF#000000##FFFFFF
##2B14731.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1473;
/* rgb */ color: rgb(43, 20, 115);
/* oklch */ color: oklch(29.9% 0.148 284.0);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2b1473',
    950: '#000000',
  },
}
SCSS
$custom: #2b1473;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1473",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 254.526,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.2993,
    "c": 0.14849,
    "h": 284
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2B1473
secondary
#8EA93A
accent
#ED3BC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1473

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

Preview Lab → · Contrast checker → · Palette generator →

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