#2C1B9A#2C1B9A

#2C1B9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.189 H 276.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2C1B9A
RGBrgb(44, 27, 154)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(71.4%, 82.5%, 0%, 39.6%)
CIE-LABlab(22.49, 46.28, -65.06)
CIE-LCHlch(22.49, 79.84, 305.42°)
OKLaboklab(35.24% 0.0215 -0.188)
OKLCHoklch(35.24% 0.189 276.5)
XYZxyz(7.2615, 3.6518, 30.8878)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B9A #899A1B
analogous
#1B4A9A #2C1B9A #6B1B9A
triadic
#2C1B9A #9A2C1B #1B9A2C
tetradic
#2C1B9A #9A1B4A #899A1B #1B9A6B
square
#2C1B9A #9A1B4A #899A1B #1B9A6B
split-complementary
#2C1B9A #9A6B1B #4A9A1B
monochromatic
#0E0932 #1D1266 #2C1B9A #3B24CE #634FE0

Accessibility & contrast

On white

12.14
#2C1B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C1B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B9A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B9A#FFFFFF#000000##FFFFFF
##2C1B9A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1b9a;
/* rgb */ color: rgb(44, 27, 154);
/* oklch */ color: oklch(35.2% 0.189 276.5);
Tailwind
colors: {
  custom: {
    50: '#775cb9',
    500: '#2c1b9a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b9a;
$custom-light: #775cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b9a",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 248.031,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.18926,
    "h": 276.5
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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