#2B1774#2B1774

#2B1774 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.147 H 283.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2B1774
RGBrgb(43, 23, 116)
HSLhsl(253, 67%, 27%)
HSVhsv(253, 80%, 45%)
CMYKcmyk(62.9%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.40, 36.30, -49.57)
CIE-LCHlch(17.40, 61.44, 306.22°)
OKLaboklab(30.41% 0.0336 -0.1429)
OKLCHoklch(30.41% 0.147 283.2)
XYZxyz(4.4541, 2.3870, 16.7456)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1774 #607417
analogous
#173274 #2B1774 #591774
triadic
#2B1774 #742B17 #17742B
tetradic
#2B1774 #741732 #607417 #177459
square
#2B1774 #741732 #607417 #177459
split-complementary
#2B1774 #745917 #327417
monochromatic
#09051A #180D41 #2B1774 #3E21A7 #5330D6

Accessibility & contrast

On white

14.21
#2B1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1774
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1774#FFFFFF#000000##FFFFFF
##2B17741.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1774;
/* rgb */ color: rgb(43, 23, 116);
/* oklch */ color: oklch(30.4% 0.147 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f579d',
    500: '#2b1774',
    950: '#000000',
  },
}
SCSS
$custom: #2b1774;
$custom-light: #6f579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1774",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 252.903,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30413,
    "c": 0.1468,
    "h": 283.2
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#2B1774
secondary
#92A93D
accent
#EA3EC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1774

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

Preview Lab → · Contrast checker → · Palette generator →

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