#2C1A91#2C1A91

#2C1A91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.179 H 277.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2C1A91
RGBrgb(44, 26, 145)
HSLhsl(249, 70%, 34%)
HSVhsv(249, 82%, 57%)
CMYKcmyk(69.7%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.27, 43.98, -61.51)
CIE-LCHlch(21.27, 75.61, 305.57°)
OKLaboklab(34.1% 0.0246 -0.1777)
OKLCHoklch(34.1% 0.179 277.9)
XYZxyz(6.5173, 3.3180, 27.0796)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A91 #7F911A
analogous
#1A4391 #2C1A91 #671A91
triadic
#2C1A91 #912C1A #1A912C
tetradic
#2C1A91 #911A43 #7F911A #1A9167
square
#2C1A91 #911A43 #7F911A #1A9167
split-complementary
#2C1A91 #91671A #43911A
monochromatic
#0D0729 #1C115D #2C1A91 #3C23C5 #5E47DE

Accessibility & contrast

On white

12.62
#2C1A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C1A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A91
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A91#FFFFFF#000000##FFFFFF
##2C1A911.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1a91;
/* rgb */ color: rgb(44, 26, 145);
/* oklch */ color: oklch(34.1% 0.179 277.9);
Tailwind
colors: {
  custom: {
    50: '#755bb3',
    500: '#2c1a91',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a91;
$custom-light: #755bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a91",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 249.076,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.17939,
    "h": 277.9
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#2C1A91
secondary
#ADC047
accent
#EC3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A91

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

Preview Lab → · Contrast checker → · Palette generator →

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