#2C1B8B#2C1B8B

#2C1B8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 278.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2C1B8B
RGBrgb(44, 27, 139)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 81%, 55%)
CMYKcmyk(68.3%, 80.6%, 0%, 45.5%)
CIE-LABlab(20.76, 41.61, -58.62)
CIE-LCHlch(20.76, 71.89, 305.37°)
OKLaboklab(33.54% 0.0259 -0.1693)
OKLCHoklch(33.54% 0.171 278.7)
XYZxyz(6.0893, 3.1829, 24.7146)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B8B #7A8B1B
analogous
#1B428B #2C1B8B #641B8B
triadic
#2C1B8B #8B2C1B #1B8B2C
tetradic
#2C1B8B #8B1B42 #7A8B1B #1B8B64
square
#2C1B8B #8B1B42 #7A8B1B #1B8B64
split-complementary
#2C1B8B #8B641B #428B1B
monochromatic
#0C0725 #1C1158 #2C1B8B #3C25BE #5C45DB

Accessibility & contrast

On white

12.83
#2C1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B8B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B8B#FFFFFF#000000##FFFFFF
##2C1B8B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1b8b;
/* rgb */ color: rgb(44, 27, 139);
/* oklch */ color: oklch(33.5% 0.171 278.7);
Tailwind
colors: {
  custom: {
    50: '#745bae',
    500: '#2c1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b8b;
$custom-light: #745bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b8b",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 249.107,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33541,
    "c": 0.17127,
    "h": 278.7
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#2C1B8B
secondary
#AABC45
accent
#EA3DD0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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