#2B1C96#2B1C96

#2B1C96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.184 H 276.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1C96
RGBrgb(43, 28, 150)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 81%, 59%)
CMYKcmyk(71.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(22.11, 44.47, -63.22)
CIE-LCHlch(22.11, 77.30, 305.12°)
OKLaboklab(34.83% 0.0208 -0.1827)
OKLCHoklch(34.83% 0.184 276.5)
XYZxyz(6.9147, 3.5455, 29.1682)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C96 #87961C
analogous
#1C4A96 #2B1C96 #681C96
triadic
#2B1C96 #962B1C #1C962B
tetradic
#2B1C96 #961C4A #87961C #1C9668
square
#2B1C96 #961C4A #87961C #1C9668
split-complementary
#2B1C96 #96681C #4A961C
monochromatic
#0D092F #1C1262 #2B1C96 #3A26CA #604EDE

Accessibility & contrast

On white

12.29
#2B1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C96
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C96#FFFFFF#000000##FFFFFF
##2B1C961.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1c96;
/* rgb */ color: rgb(43, 28, 150);
/* oklch */ color: oklch(34.8% 0.184 276.5);
Tailwind
colors: {
  custom: {
    50: '#765cb6',
    500: '#2b1c96',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c96;
$custom-light: #765cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c96",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 247.377,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.18392,
    "h": 276.5
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#2B1C96
secondary
#B2C14D
accent
#EB3CD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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