#2C1B9B#2C1B9B

#2C1B9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.190 H 276.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2C1B9B
RGBrgb(44, 27, 155)
HSLhsl(248, 70%, 36%)
HSVhsv(248, 83%, 61%)
CMYKcmyk(71.6%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.60, 46.58, -65.48)
CIE-LCHlch(22.60, 80.36, 305.43°)
OKLaboklab(35.36% 0.0212 -0.1892)
OKLCHoklch(35.36% 0.19 276.4)
XYZxyz(7.3451, 3.6852, 31.3282)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B9B #8A9B1B
analogous
#1B4A9B #2C1B9B #6C1B9B
triadic
#2C1B9B #9B2C1B #1B9B2C
tetradic
#2C1B9B #9B1B4A #8A9B1B #1B9B6C
square
#2C1B9B #9B1B4A #8A9B1B #1B9B6C
split-complementary
#2C1B9B #9B6C1B #4A9B1B
monochromatic
#0E0933 #1D1267 #2C1B9B #3B24CF #6350E0

Accessibility & contrast

On white

12.09
#2C1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B9B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B9B#FFFFFF#000000##FFFFFF
##2C1B9B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1b9b;
/* rgb */ color: rgb(44, 27, 155);
/* oklch */ color: oklch(35.4% 0.190 276.4);
Tailwind
colors: {
  custom: {
    50: '#785cba',
    500: '#2c1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b9b;
$custom-light: #785cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b9b",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 247.969,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.19044,
    "h": 276.4
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#2C1B9B
secondary
#B4C34F
accent
#ED3BD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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