#2C1A97#2C1A97

#2C1A97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.187 H 277.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2C1A97
RGBrgb(44, 26, 151)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 59%)
CMYKcmyk(70.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(21.97, 45.83, -64.06)
CIE-LCHlch(21.97, 78.77, 305.58°)
OKLaboklab(34.79% 0.0228 -0.1851)
OKLCHoklch(34.79% 0.187 277)
XYZxyz(6.9922, 3.5080, 29.5808)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A97 #85971A
analogous
#1A4797 #2C1A97 #6B1A97
triadic
#2C1A97 #972C1A #1A972C
tetradic
#2C1A97 #971A47 #85971A #1A976B
square
#2C1A97 #971A47 #85971A #1A976B
split-complementary
#2C1A97 #976B1A #47971A
monochromatic
#0E082F #1D1163 #2C1A97 #3B23CB #614BE0

Accessibility & contrast

On white

12.34
#2C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A97
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A97#FFFFFF#000000##FFFFFF
##2C1A971.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1a97;
/* rgb */ color: rgb(44, 26, 151);
/* oklch */ color: oklch(34.8% 0.187 277.0);
Tailwind
colors: {
  custom: {
    50: '#775bb7',
    500: '#2c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a97;
$custom-light: #775bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a97",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 248.64,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.18651,
    "h": 277
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#2C1A97
secondary
#B1C24B
accent
#ED3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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