#2B1181#2B1181

#2B1181 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.168 H 281.2°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2B1181
RGBrgb(43, 17, 129)
HSLhsl(254, 77%, 29%)
HSVhsv(254, 87%, 51%)
CMYKcmyk(66.7%, 86.8%, 0%, 49.4%)
CIE-LABlab(17.91, 43.12, -57.03)
CIE-LCHlch(17.91, 71.50, 307.09°)
OKLaboklab(31.21% 0.0326 -0.1646)
OKLCHoklch(31.21% 0.168 281.2)
XYZxyz(5.1579, 2.4991, 20.9752)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1181 #678111
analogous
#112F81 #2B1181 #631181
triadic
#2B1181 #812B11 #11812B
tetradic
#2B1181 #81112F #678111 #118163
square
#2B1181 #81112F #678111 #118163
split-complementary
#2B1181 #816311 #2F8111
monochromatic
#09041B #190A4B #2B1181 #3D18B7 #552AE3

Accessibility & contrast

On white

14.00
#2B1181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1181
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1181#FFFFFF#000000##FFFFFF
##2B11811.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1181;
/* rgb */ color: rgb(43, 17, 129);
/* oklch */ color: oklch(31.2% 0.168 281.2);
Tailwind
colors: {
  custom: {
    50: '#7255a7',
    500: '#2b1181',
    950: '#000000',
  },
}
SCSS
$custom: #2b1181;
$custom-light: #7255a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1181",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 253.929,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31209,
    "c": 0.16776,
    "h": 281.2
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#2B1181
secondary
#99B737
accent
#F335C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1181

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

Preview Lab → · Contrast checker → · Palette generator →

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