#2C2096#2C2096

#2C2096 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 276.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2C2096
RGBrgb(44, 32, 150)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 79%, 59%)
CMYKcmyk(70.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(22.90, 42.51, -61.92)
CIE-LCHlch(22.90, 75.11, 304.47°)
OKLaboklab(35.39% 0.0203 -0.179)
OKLCHoklch(35.39% 0.18 276.5)
XYZxyz(7.0584, 3.7699, 29.2039)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2096 #8A9620
analogous
#204F96 #2C2096 #672096
triadic
#2C2096 #962C20 #20962C
tetradic
#2C2096 #96204F #8A9620 #209667
square
#2C2096 #96204F #8A9620 #209667
split-complementary
#2C2096 #966720 #4F9620
monochromatic
#0E0A31 #1D1564 #2C2096 #3B2BC8 #6356DB

Accessibility & contrast

On white

11.97
#2C2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2096
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2096#FFFFFF#000000##FFFFFF
##2C20961.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2096;
/* rgb */ color: rgb(44, 32, 150);
/* oklch */ color: oklch(35.4% 0.180 276.5);
Tailwind
colors: {
  custom: {
    50: '#765eb6',
    500: '#2c2096',
    950: '#000000',
  },
}
SCSS
$custom: #2c2096;
$custom-light: #765eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2096",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 246.102,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35395,
    "c": 0.18012,
    "h": 276.5
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#2C2096
secondary
#B4BE53
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2096

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

Preview Lab → · Contrast checker → · Palette generator →

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