#2C1B97#2C1B97

#2C1B97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.186 H 276.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2C1B97
RGBrgb(44, 27, 151)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 59%)
CMYKcmyk(70.9%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.14, 45.35, -63.79)
CIE-LCHlch(22.14, 78.27, 305.41°)
OKLaboklab(34.9% 0.0224 -0.1844)
OKLCHoklch(34.9% 0.186 276.9)
XYZxyz(7.0147, 3.5531, 29.5883)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B97 #86971B
analogous
#1B4897 #2C1B97 #6A1B97
triadic
#2C1B97 #972C1B #1B972C
tetradic
#2C1B97 #971B48 #86971B #1B976A
square
#2C1B97 #971B48 #86971B #1B976A
split-complementary
#2C1B97 #976A1B #48971B
monochromatic
#0E082F #1D1263 #2C1B97 #3B24CB #614DDF

Accessibility & contrast

On white

12.27
#2C1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B97
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B97#FFFFFF#000000##FFFFFF
##2C1B971.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1b97;
/* rgb */ color: rgb(44, 27, 151);
/* oklch */ color: oklch(34.9% 0.186 276.9);
Tailwind
colors: {
  custom: {
    50: '#775cb7',
    500: '#2c1b97',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b97;
$custom-light: #775cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b97",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 248.226,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34899,
    "c": 0.18571,
    "h": 276.9
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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