#2C1B96#2C1B96

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

Color values

HEX#2C1B96
RGBrgb(44, 27, 150)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 59%)
CMYKcmyk(70.7%, 82%, 0%, 41.2%)
CIE-LABlab(22.02, 45.05, -63.37)
CIE-LCHlch(22.02, 77.75, 305.41°)
OKLaboklab(34.78% 0.0227 -0.1831)
OKLCHoklch(34.78% 0.185 277.1)
XYZxyz(6.9339, 3.5207, 29.1624)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B96 #85961B
analogous
#1B4796 #2C1B96 #6A1B96
triadic
#2C1B96 #962C1B #1B962C
tetradic
#2C1B96 #961B47 #85961B #1B966A
square
#2C1B96 #961B47 #85961B #1B966A
split-complementary
#2C1B96 #966A1B #47961B
monochromatic
#0E082E #1D1262 #2C1B96 #3B24CA #614DDF

Accessibility & contrast

On white

12.32
#2C1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B96
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B96#FFFFFF#000000##FFFFFF
##2C1B961.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1b96;
/* rgb */ color: rgb(44, 27, 150);
/* oklch */ color: oklch(34.8% 0.185 277.1);
Tailwind
colors: {
  custom: {
    50: '#765cb6',
    500: '#2c1b96',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b96;
$custom-light: #765cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b96",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 248.293,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.18452,
    "h": 277.1
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#2C1B96
secondary
#B1C14C
accent
#EC3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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