#2C1A87#2C1A87

#2C1A87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.167 H 279.5°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2C1A87
RGBrgb(44, 26, 135)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(67.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.14, 40.86, -57.14)
CIE-LCHlch(20.14, 70.25, 305.57°)
OKLaboklab(32.97% 0.0276 -0.165)
OKLCHoklch(32.97% 0.167 279.5)
XYZxyz(5.7799, 3.0231, 23.1959)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A87 #75871A
analogous
#1A3F87 #2C1A87 #631A87
triadic
#2C1A87 #872C1A #1A872C
tetradic
#2C1A87 #871A3F #75871A #1A8763
square
#2C1A87 #871A3F #75871A #1A8763
split-complementary
#2C1A87 #87631A #3F871A
monochromatic
#0B0620 #1B1054 #2C1A87 #3D24BA #5A41DA

Accessibility & contrast

On white

13.09
#2C1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1A87
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A87#FFFFFF#000000##FFFFFF
##2C1A871.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1a87;
/* rgb */ color: rgb(44, 26, 135);
/* oklch */ color: oklch(33.0% 0.167 279.5);
Tailwind
colors: {
  custom: {
    50: '#735aab',
    500: '#2c1a87',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a87;
$custom-light: #735aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a87",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 249.908,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.16729,
    "h": 279.5
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#2C1A87
secondary
#A7BA42
accent
#EB3DCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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