#2B1876#2B1876

#2B1876 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.148 H 282.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2B1876
RGBrgb(43, 24, 118)
HSLhsl(252, 66%, 28%)
HSVhsv(252, 80%, 46%)
CMYKcmyk(63.6%, 79.7%, 0%, 53.7%)
CIE-LABlab(17.80, 36.40, -50.19)
CIE-LCHlch(17.80, 62.00, 305.95°)
OKLaboklab(30.76% 0.0323 -0.1447)
OKLCHoklch(30.76% 0.148 282.6)
XYZxyz(4.5919, 2.4745, 17.3717)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1876 #637618
analogous
#183476 #2B1876 #5A1876
triadic
#2B1876 #762B18 #18762B
tetradic
#2B1876 #761834 #637618 #18765A
square
#2B1876 #761834 #637618 #18765A
split-complementary
#2B1876 #765A18 #347618
monochromatic
#090519 #180E43 #2B1876 #3E22A9 #5433D5

Accessibility & contrast

On white

14.05
#2B1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1876
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1876#FFFFFF#000000##FFFFFF
##2B18761.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1876;
/* rgb */ color: rgb(43, 24, 118);
/* oklch */ color: oklch(30.8% 0.148 282.6);
Tailwind
colors: {
  custom: {
    50: '#6f589f',
    500: '#2b1876',
    950: '#000000',
  },
}
SCSS
$custom: #2b1876;
$custom-light: #6f589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1876",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 252.128,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3076,
    "c": 0.14829,
    "h": 282.6
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#2B1876
secondary
#95AB3F
accent
#E93FC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1876

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

Preview Lab → · Contrast checker → · Palette generator →

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