#2C1A95#2C1A95

#2C1A95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.184 H 277.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2C1A95
RGBrgb(44, 26, 149)
HSLhsl(249, 70%, 34%)
HSVhsv(249, 83%, 58%)
CMYKcmyk(70.5%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.74, 45.21, -63.21)
CIE-LCHlch(21.74, 77.72, 305.57°)
OKLaboklab(34.56% 0.0234 -0.1826)
OKLCHoklch(34.56% 0.184 277.3)
XYZxyz(6.8312, 3.4436, 28.7326)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A95 #83951A
analogous
#1A4695 #2C1A95 #691A95
triadic
#2C1A95 #952C1A #1A952C
tetradic
#2C1A95 #951A46 #83951A #1A9569
square
#2C1A95 #951A46 #83951A #1A9569
split-complementary
#2C1A95 #95691A #46951A
monochromatic
#0D082D #1D1161 #2C1A95 #3B23C9 #604ADF

Accessibility & contrast

On white

12.43
#2C1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A95
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A95#FFFFFF#000000##FFFFFF
##2C1A951.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1a95;
/* rgb */ color: rgb(44, 26, 149);
/* oklch */ color: oklch(34.6% 0.184 277.3);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2c1a95',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a95;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a95",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 248.78,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.18415,
    "h": 277.3
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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