#2C2198#2C2198

#2C2198 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.182 H 276.1°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2C2198
RGBrgb(44, 33, 152)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(71.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.30, 42.62, -62.48)
CIE-LCHlch(23.30, 75.63, 304.30°)
OKLaboklab(35.75% 0.0193 -0.1806)
OKLCHoklch(35.75% 0.182 276.1)
XYZxyz(7.2482, 3.8895, 30.0684)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2198 #8D9821
analogous
#215298 #2C2198 #682198
triadic
#2C2198 #982C21 #21982C
tetradic
#2C2198 #982152 #8D9821 #219868
square
#2C2198 #982152 #8D9821 #219868
split-complementary
#2C2198 #986821 #529821
monochromatic
#0F0B33 #1D1666 #2C2198 #3B2CCA #6559DB

Accessibility & contrast

On white

11.81
#2C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2198
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2198#FFFFFF#000000##FFFFFF
##2C21981.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2198;
/* rgb */ color: rgb(44, 33, 152);
/* oklch */ color: oklch(35.7% 0.182 276.1);
Tailwind
colors: {
  custom: {
    50: '#765fb8',
    500: '#2c2198',
    950: '#000000',
  },
}
SCSS
$custom: #2c2198;
$custom-light: #765fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2198",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 245.546,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.18164,
    "h": 276.1
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#2C2198
secondary
#B5BF56
accent
#E740D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2198

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

Preview Lab → · Contrast checker → · Palette generator →

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