#2B1777#2B1777

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

Color values

HEX#2B1777
RGBrgb(43, 23, 119)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 47%)
CMYKcmyk(63.9%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.73, 37.25, -50.96)
CIE-LCHlch(17.73, 63.12, 306.16°)
OKLaboklab(30.74% 0.0327 -0.147)
OKLCHoklch(30.74% 0.151 282.5)
XYZxyz(4.6314, 2.4580, 17.6796)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1777 #637717
analogous
#173377 #2B1777 #5B1777
triadic
#2B1777 #772B17 #17772B
tetradic
#2B1777 #771733 #637717 #17775B
square
#2B1777 #771733 #637717 #17775B
split-complementary
#2B1777 #775B17 #337717
monochromatic
#09051A #180D44 #2B1777 #3E21AA #5431D7

Accessibility & contrast

On white

14.08
#2B1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1777
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1777#FFFFFF#000000##FFFFFF
##2B17771.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1777;
/* rgb */ color: rgb(43, 23, 119);
/* oklch */ color: oklch(30.7% 0.151 282.5);
Tailwind
colors: {
  custom: {
    50: '#6f579f',
    500: '#2b1777',
    950: '#000000',
  },
}
SCSS
$custom: #2b1777;
$custom-light: #6f579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1777",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 252.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3074,
    "c": 0.15056,
    "h": 282.5
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#2B1777
secondary
#95AC3E
accent
#EA3DC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1777

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

Preview Lab → · Contrast checker → · Palette generator →

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