#2C2197#2C2197

#2C2197 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.180 H 276.2°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2C2197
RGBrgb(44, 33, 151)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 59%)
CMYKcmyk(70.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.19, 42.30, -62.04)
CIE-LCHlch(23.19, 75.09, 304.28°)
OKLaboklab(35.64% 0.0196 -0.1793)
OKLCHoklch(35.64% 0.18 276.2)
XYZxyz(7.1666, 3.8569, 29.6389)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2197 #8C9721
analogous
#215197 #2C2197 #672197
triadic
#2C2197 #972C21 #21972C
tetradic
#2C2197 #972151 #8C9721 #219767
square
#2C2197 #972151 #8C9721 #219767
split-complementary
#2C2197 #976721 #519721
monochromatic
#0F0B33 #1D1665 #2C2197 #3B2CC9 #6458DA

Accessibility & contrast

On white

11.85
#2C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2197
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2197#FFFFFF#000000##FFFFFF
##2C21971.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2197;
/* rgb */ color: rgb(44, 33, 151);
/* oklch */ color: oklch(35.6% 0.180 276.2);
Tailwind
colors: {
  custom: {
    50: '#765fb7',
    500: '#2c2197',
    950: '#000000',
  },
}
SCSS
$custom: #2c2197;
$custom-light: #765fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2197",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 245.593,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35636,
    "c": 0.18042,
    "h": 276.2
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#2C2197
secondary
#B5BE55
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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