#2C1B84#2C1B84

#2C1B84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.163 H 279.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1B84
RGBrgb(44, 27, 132)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(66.7%, 79.5%, 0%, 48.2%)
CIE-LABlab(19.98, 39.39, -55.51)
CIE-LCHlch(19.98, 68.07, 305.36°)
OKLaboklab(32.77% 0.0279 -0.1602)
OKLCHoklch(32.77% 0.163 279.9)
XYZxyz(5.5942, 2.9848, 22.1067)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B84 #73841B
analogous
#1B3E84 #2C1B84 #601B84
triadic
#2C1B84 #842C1B #1B842C
tetradic
#2C1B84 #841B3E #73841B #1B8460
square
#2C1B84 #841B3E #73841B #1B8460
split-complementary
#2C1B84 #84601B #3E841B
monochromatic
#0A061E #1B1151 #2C1B84 #3D25B7 #5A41D8

Accessibility & contrast

On white

13.15
#2C1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B84
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B84#FFFFFF#000000##FFFFFF
##2C1B841.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1b84;
/* rgb */ color: rgb(44, 27, 132);
/* oklch */ color: oklch(32.8% 0.163 279.9);
Tailwind
colors: {
  custom: {
    50: '#725aa9',
    500: '#2c1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b84;
$custom-light: #725aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b84",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 249.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32766,
    "c": 0.16266,
    "h": 279.9
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#2C1B84
secondary
#A5B743
accent
#E93FCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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