#2C2199#2C2199

#2C2199 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.183 H 276.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2C2199
RGBrgb(44, 33, 153)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(71.2%, 78.4%, 0%, 40%)
CIE-LABlab(23.41, 42.95, -62.91)
CIE-LCHlch(23.41, 76.17, 304.32°)
OKLaboklab(35.86% 0.0191 -0.1819)
OKLCHoklch(35.86% 0.183 276)
XYZxyz(7.3304, 3.9224, 30.5016)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2199 #8E9921
analogous
#215299 #2C2199 #682199
triadic
#2C2199 #992C21 #21992C
tetradic
#2C2199 #992152 #8E9921 #219968
square
#2C2199 #992152 #8E9921 #219968
split-complementary
#2C2199 #996821 #529921
monochromatic
#0F0B34 #1E1667 #2C2199 #3A2CCB #6559DB

Accessibility & contrast

On white

11.77
#2C2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2199
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2199#FFFFFF#000000##FFFFFF
##2C21991.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2199;
/* rgb */ color: rgb(44, 33, 153);
/* oklch */ color: oklch(35.9% 0.183 276.0);
Tailwind
colors: {
  custom: {
    50: '#775fb8',
    500: '#2c2199',
    950: '#000000',
  },
}
SCSS
$custom: #2c2199;
$custom-light: #775fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2199",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 245.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.18286,
    "h": 276
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#2C2199
secondary
#B6BF56
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C2199

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

Preview Lab → · Contrast checker → · Palette generator →

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