#2C1B8D#2C1B8D

#2C1B8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.174 H 278.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2C1B8D
RGBrgb(44, 27, 141)
HSLhsl(249, 68%, 33%)
HSVhsv(249, 81%, 55%)
CMYKcmyk(68.8%, 80.9%, 0%, 44.7%)
CIE-LABlab(20.99, 42.24, -59.49)
CIE-LCHlch(20.99, 72.96, 305.38°)
OKLaboklab(33.77% 0.0253 -0.1718)
OKLCHoklch(33.77% 0.174 278.4)
XYZxyz(6.2368, 3.2419, 25.4912)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B8D #7C8D1B
analogous
#1B438D #2C1B8D #651B8D
triadic
#2C1B8D #8D2C1B #1B8D2C
tetradic
#2C1B8D #8D1B43 #7C8D1B #1B8D65
square
#2C1B8D #8D1B43 #7C8D1B #1B8D65
split-complementary
#2C1B8D #8D651B #438D1B
monochromatic
#0C0726 #1C115A #2C1B8D #3C25C0 #5D47DC

Accessibility & contrast

On white

12.74
#2C1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B8D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B8D#FFFFFF#000000##FFFFFF
##2C1B8D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1b8d;
/* rgb */ color: rgb(44, 27, 141);
/* oklch */ color: oklch(33.8% 0.174 278.4);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2c1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b8d;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b8d",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 248.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33765,
    "c": 0.17371,
    "h": 278.4
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#2C1B8D
secondary
#ACBD46
accent
#EB3DD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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