#2C1E96#2C1E96

#2C1E96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 276.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2C1E96
RGBrgb(44, 30, 150)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 80%, 59%)
CMYKcmyk(70.7%, 80%, 0%, 41.2%)
CIE-LABlab(22.53, 43.55, -62.52)
CIE-LCHlch(22.53, 76.19, 304.86°)
OKLaboklab(35.14% 0.0213 -0.1807)
OKLCHoklch(35.14% 0.182 276.7)
XYZxyz(7.0062, 3.6654, 29.1865)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E96 #88961E
analogous
#1E4C96 #2C1E96 #681E96
triadic
#2C1E96 #962C1E #1E962C
tetradic
#2C1E96 #961E4C #88961E #1E9668
square
#2C1E96 #961E4C #88961E #1E9668
split-complementary
#2C1E96 #96681E #4C961E
monochromatic
#0E0A30 #1D1463 #2C1E96 #3B28C9 #6252DC

Accessibility & contrast

On white

12.12
#2C1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E96
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E96#FFFFFF#000000##FFFFFF
##2C1E961.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1e96;
/* rgb */ color: rgb(44, 30, 150);
/* oklch */ color: oklch(35.1% 0.182 276.7);
Tailwind
colors: {
  custom: {
    50: '#765db6',
    500: '#2c1e96',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e96;
$custom-light: #765db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e96",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 247,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.18194,
    "h": 276.7
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#2C1E96
secondary
#B3BF50
accent
#EA3ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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