#2C1996#2C1996

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

Color values

HEX#2C1996
RGBrgb(44, 25, 150)
HSLhsl(249, 71%, 34%)
HSVhsv(249, 83%, 59%)
CMYKcmyk(70.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(21.70, 45.99, -63.90)
CIE-LCHlch(21.70, 78.73, 305.74°)
OKLaboklab(34.56% 0.0235 -0.1846)
OKLCHoklch(34.56% 0.186 277.3)
XYZxyz(6.8896, 3.4321, 29.1476)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1996 #839619
analogous
#194596 #2C1996 #6B1996
triadic
#2C1996 #962C19 #19962C
tetradic
#2C1996 #961945 #839619 #19966B
square
#2C1996 #961945 #839619 #19966B
split-complementary
#2C1996 #966B19 #459619
monochromatic
#0D082D #1D1062 #2C1996 #3B22CA #6049E1

Accessibility & contrast

On white

12.45
#2C1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1996
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1996#FFFFFF#000000##FFFFFF
##2C19961.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.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: #2c1996;
/* rgb */ color: rgb(44, 25, 150);
/* oklch */ color: oklch(34.6% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#775bb6',
    500: '#2c1996',
    950: '#000000',
  },
}
SCSS
$custom: #2c1996;
$custom-light: #775bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1996",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 249.12,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34562,
    "c": 0.18612,
    "h": 277.3
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#2C1996
secondary
#B0C249
accent
#EE3AD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1996

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

Preview Lab → · Contrast checker → · Palette generator →

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