#2C1D87#2C1D87

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

Color values

HEX#2C1D87
RGBrgb(44, 29, 135)
HSLhsl(248, 65%, 32%)
HSVhsv(248, 79%, 53%)
CMYKcmyk(67.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.69, 39.28, -56.24)
CIE-LCHlch(20.69, 68.60, 304.94°)
OKLaboklab(33.36% 0.0259 -0.1624)
OKLCHoklch(33.36% 0.164 279.1)
XYZxyz(5.8498, 3.1630, 23.2192)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D87 #78871D
analogous
#1D4387 #2C1D87 #611D87
triadic
#2C1D87 #872C1D #1D872C
tetradic
#2C1D87 #871D43 #78871D #1D8761
square
#2C1D87 #871D43 #78871D #1D8761
split-complementary
#2C1D87 #87611D #43871D
monochromatic
#0B0722 #1C1255 #2C1D87 #3C28B9 #5B47D7

Accessibility & contrast

On white

12.86
#2C1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D87
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D87#FFFFFF#000000##FFFFFF
##2C1D871.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1d87;
/* rgb */ color: rgb(44, 29, 135);
/* oklch */ color: oklch(33.4% 0.164 279.1);
Tailwind
colors: {
  custom: {
    50: '#735cab',
    500: '#2c1d87',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d87;
$custom-light: #735cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d87",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 248.491,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33356,
    "c": 0.16444,
    "h": 279.1
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#2C1D87
secondary
#A9B946
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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