#2B1878#2B1878

#2B1878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.151 H 282.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2B1878
RGBrgb(43, 24, 120)
HSLhsl(252, 67%, 28%)
HSVhsv(252, 80%, 47%)
CMYKcmyk(64.2%, 80%, 0%, 52.9%)
CIE-LABlab(18.02, 37.04, -51.12)
CIE-LCHlch(18.02, 63.13, 305.93°)
OKLaboklab(30.98% 0.0317 -0.1474)
OKLCHoklch(30.98% 0.151 282.1)
XYZxyz(4.7120, 2.5226, 18.0043)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1878 #657818
analogous
#183578 #2B1878 #5B1878
triadic
#2B1878 #782B18 #18782B
tetradic
#2B1878 #781835 #657818 #18785B
square
#2B1878 #781835 #657818 #18785B
split-complementary
#2B1878 #785B18 #357818
monochromatic
#09051A #190E45 #2B1878 #3D22AB #5434D6

Accessibility & contrast

On white

13.96
#2B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1878
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1878#FFFFFF#000000##FFFFFF
##2B18781.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1878;
/* rgb */ color: rgb(43, 24, 120);
/* oklch */ color: oklch(31.0% 0.151 282.1);
Tailwind
colors: {
  custom: {
    50: '#6f58a0',
    500: '#2b1878',
    950: '#000000',
  },
}
SCSS
$custom: #2b1878;
$custom-light: #6f58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1878",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 251.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30978,
    "c": 0.15081,
    "h": 282.1
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#2B1878
secondary
#97AD3F
accent
#EA3EC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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