#2C1A96#2C1A96

#2C1A96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.185 H 277.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1A96
RGBrgb(44, 26, 150)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 83%, 59%)
CMYKcmyk(70.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(21.86, 45.52, -63.64)
CIE-LCHlch(21.86, 78.24, 305.58°)
OKLaboklab(34.67% 0.0231 -0.1839)
OKLCHoklch(34.67% 0.185 277.2)
XYZxyz(6.9113, 3.4756, 29.1549)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A96 #84961A
analogous
#1A4696 #2C1A96 #6A1A96
triadic
#2C1A96 #962C1A #1A962C
tetradic
#2C1A96 #961A46 #84961A #1A966A
square
#2C1A96 #961A46 #84961A #1A966A
split-complementary
#2C1A96 #966A1A #46961A
monochromatic
#0D082E #1D1162 #2C1A96 #3B23CA #604BE0

Accessibility & contrast

On white

12.39
#2C1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1A96
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A96#FFFFFF#000000##FFFFFF
##2C1A961.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1a96;
/* rgb */ color: rgb(44, 26, 150);
/* oklch */ color: oklch(34.7% 0.185 277.2);
Tailwind
colors: {
  custom: {
    50: '#765bb6',
    500: '#2c1a96',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a96;
$custom-light: #765bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a96",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 248.71,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34671,
    "c": 0.18534,
    "h": 277.2
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#2C1A96
secondary
#B0C24A
accent
#ED3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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