#2C1B87#2C1B87

#2C1B87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 279.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2C1B87
RGBrgb(44, 27, 135)
HSLhsl(249, 67%, 32%)
HSVhsv(249, 80%, 53%)
CMYKcmyk(67.4%, 80%, 0%, 47.1%)
CIE-LABlab(20.31, 40.35, -56.85)
CIE-LCHlch(20.31, 69.71, 305.36°)
OKLaboklab(33.1% 0.027 -0.1641)
OKLCHoklch(33.1% 0.166 279.4)
XYZxyz(5.8024, 3.0681, 23.2034)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B87 #76871B
analogous
#1B4087 #2C1B87 #621B87
triadic
#2C1B87 #872C1B #1B872C
tetradic
#2C1B87 #871B40 #76871B #1B8762
square
#2C1B87 #871B40 #76871B #1B8762
split-complementary
#2C1B87 #87621B #40871B
monochromatic
#0B0721 #1B1154 #2C1B87 #3D25BA #5B43D9

Accessibility & contrast

On white

13.01
#2C1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B87
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B87#FFFFFF#000000##FFFFFF
##2C1B871.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1b87;
/* rgb */ color: rgb(44, 27, 135);
/* oklch */ color: oklch(33.1% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#735bab',
    500: '#2c1b87',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b87;
$custom-light: #735bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b87",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 249.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.16636,
    "h": 279.4
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#2C1B87
secondary
#A7BA44
accent
#EA3ECF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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