#2B1B77#2B1B77

#2B1B77 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.146 H 281.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2B1B77
RGBrgb(43, 27, 119)
HSLhsl(250, 63%, 29%)
HSVhsv(250, 77%, 47%)
CMYKcmyk(63.9%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.49, 35.07, -49.70)
CIE-LCHlch(18.49, 60.83, 305.21°)
OKLaboklab(31.28% 0.0299 -0.1433)
OKLCHoklch(31.28% 0.146 281.8)
XYZxyz(4.7169, 2.6290, 17.7081)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B77 #67771B
analogous
#1B3977 #2B1B77 #591B77
triadic
#2B1B77 #772B1B #1B772B
tetradic
#2B1B77 #771B39 #67771B #1B7759
square
#2B1B77 #771B39 #67771B #1B7759
split-complementary
#2B1B77 #77591B #39771B
monochromatic
#090619 #191045 #2B1B77 #3D26A9 #553AD2

Accessibility & contrast

On white

13.76
#2B1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B77
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B77#FFFFFF#000000##FFFFFF
##2B1B771.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1b77;
/* rgb */ color: rgb(43, 27, 119);
/* oklch */ color: oklch(31.3% 0.146 281.8);
Tailwind
colors: {
  custom: {
    50: '#6f5a9f',
    500: '#2b1b77',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b77;
$custom-light: #6f5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b77",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 250.435,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31277,
    "c": 0.14641,
    "h": 281.8
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#2B1B77
secondary
#99AB42
accent
#E642C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2B1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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