#2C1B82#2C1B82

#2C1B82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 280.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2C1B82
RGBrgb(44, 27, 130)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 79%, 51%)
CMYKcmyk(66.2%, 79.2%, 0%, 49%)
CIE-LABlab(19.76, 38.75, -54.61)
CIE-LCHlch(19.76, 66.96, 305.36°)
OKLaboklab(32.55% 0.0285 -0.1576)
OKLCHoklch(32.55% 0.16 280.2)
XYZxyz(5.4586, 2.9306, 21.3928)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B82 #71821B
analogous
#1B3D82 #2C1B82 #5F1B82
triadic
#2C1B82 #822C1B #1B822C
tetradic
#2C1B82 #821B3D #71821B #1B825F
square
#2C1B82 #821B3D #71821B #1B825F
split-complementary
#2C1B82 #825F1B #3D821B
monochromatic
#0A061D #1B104F #2C1B82 #3D26B5 #5940D7

Accessibility & contrast

On white

13.24
#2C1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B82
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B82#FFFFFF#000000##FFFFFF
##2C1B821.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1b82;
/* rgb */ color: rgb(44, 27, 130);
/* oklch */ color: oklch(32.5% 0.160 280.2);
Tailwind
colors: {
  custom: {
    50: '#725aa7',
    500: '#2c1b82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b82;
$custom-light: #725aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b82",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 249.903,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32547,
    "c": 0.16017,
    "h": 280.2
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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