#2C1B8A#2C1B8A

#2C1B8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.170 H 278.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2C1B8A
RGBrgb(44, 27, 138)
HSLhsl(249, 67%, 32%)
HSVhsv(249, 80%, 54%)
CMYKcmyk(68.1%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.65, 41.30, -58.18)
CIE-LCHlch(20.65, 71.34, 305.37°)
OKLaboklab(33.43% 0.0262 -0.168)
OKLCHoklch(33.43% 0.17 278.9)
XYZxyz(6.0166, 3.1538, 24.3315)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B8A #798A1B
analogous
#1B428A #2C1B8A #631B8A
triadic
#2C1B8A #8A2C1B #1B8A2C
tetradic
#2C1B8A #8A1B42 #798A1B #1B8A63
square
#2C1B8A #8A1B42 #798A1B #1B8A63
split-complementary
#2C1B8A #8A631B #428A1B
monochromatic
#0B0724 #1C1157 #2C1B8A #3C25BD #5C45DB

Accessibility & contrast

On white

12.88
#2C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B8A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B8A#FFFFFF#000000##FFFFFF
##2C1B8A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1b8a;
/* rgb */ color: rgb(44, 27, 138);
/* oklch */ color: oklch(33.4% 0.170 278.9);
Tailwind
colors: {
  custom: {
    50: '#745bad',
    500: '#2c1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b8a;
$custom-light: #745bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b8a",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 249.189,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.17005,
    "h": 278.9
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#2C1B8A
secondary
#AABC45
accent
#EA3ED0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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