#2C1C96#2C1C96

#2C1C96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.184 H 277.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2C1C96
RGBrgb(44, 28, 150)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 81%, 59%)
CMYKcmyk(70.7%, 81.3%, 0%, 41.2%)
CIE-LABlab(22.19, 44.56, -63.09)
CIE-LCHlch(22.19, 77.24, 305.23°)
OKLaboklab(34.9% 0.0223 -0.1823)
OKLCHoklch(34.9% 0.184 277)
XYZxyz(6.9572, 3.5674, 29.1702)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C96 #86961C
analogous
#1C4996 #2C1C96 #691C96
triadic
#2C1C96 #962C1C #1C962C
tetradic
#2C1C96 #961C49 #86961C #1C9669
square
#2C1C96 #961C49 #86961C #1C9669
split-complementary
#2C1C96 #96691C #49961C
monochromatic
#0E092F #1D1262 #2C1C96 #3B26CA #614EDE

Accessibility & contrast

On white

12.25
#2C1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C96
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C96#FFFFFF#000000##FFFFFF
##2C1C961.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1c96;
/* rgb */ color: rgb(44, 28, 150);
/* oklch */ color: oklch(34.9% 0.184 277.0);
Tailwind
colors: {
  custom: {
    50: '#765cb6',
    500: '#2c1c96',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c96;
$custom-light: #765cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c96",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 247.869,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.349,
    "c": 0.18368,
    "h": 277
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#2C1C96
secondary
#B1C14D
accent
#EB3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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