#2B1474#2B1474

#2B1474 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.150 H 283.7°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2B1474
RGBrgb(43, 20, 116)
HSLhsl(254, 71%, 27%)
HSVhsv(254, 83%, 45%)
CMYKcmyk(62.9%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.87, 37.83, -50.45)
CIE-LCHlch(16.87, 63.06, 306.87°)
OKLaboklab(30.04% 0.0356 -0.1454)
OKLCHoklch(30.04% 0.15 283.7)
XYZxyz(4.3978, 2.2746, 16.7269)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1474 #5D7414
analogous
#142D74 #2B1474 #5B1474
triadic
#2B1474 #742B14 #14742B
tetradic
#2B1474 #74142D #5D7414 #14745B
square
#2B1474 #74142D #5D7414 #14745B
split-complementary
#2B1474 #745B14 #2D7414
monochromatic
#0A051A #180B40 #2B1474 #3E1DA8 #5328DA

Accessibility & contrast

On white

14.43
#2B1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1474
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1474#FFFFFF#000000##FFFFFF
##2B14741.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1474;
/* rgb */ color: rgb(43, 20, 116);
/* oklch */ color: oklch(30.0% 0.150 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f559d',
    500: '#2b1474',
    950: '#000000',
  },
}
SCSS
$custom: #2b1474;
$custom-light: #6f559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1474",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 254.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30041,
    "c": 0.14973,
    "h": 283.7
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#2B1474
secondary
#8FAA3A
accent
#ED3AC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1474

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

Preview Lab → · Contrast checker → · Palette generator →

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