#2C218C#2C218C

#2C218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.167 H 277.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2C218C
RGBrgb(44, 33, 140)
HSLhsl(246, 62%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(68.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.00, 38.70, -57.19)
CIE-LCHlch(22.00, 69.06, 304.09°)
OKLaboklab(34.44% 0.0222 -0.1652)
OKLCHoklch(34.44% 0.167 277.7)
XYZxyz(6.3147, 3.5161, 25.1518)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C218C #818C21
analogous
#214C8C #2C218C #62218C
triadic
#2C218C #8C2C21 #218C2C
tetradic
#2C218C #8C214C #818C21 #218C62
square
#2C218C #8C214C #818C21 #218C62
split-complementary
#2C218C #8C6221 #4C8C21
monochromatic
#0D0A29 #1C155A #2C218C #3C2DBE #5F51D6

Accessibility & contrast

On white

12.33
#2C218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C218C
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C218C#FFFFFF#000000##FFFFFF
##2C218C1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c218c;
/* rgb */ color: rgb(44, 33, 140);
/* oklch */ color: oklch(34.4% 0.167 277.7);
Tailwind
colors: {
  custom: {
    50: '#745eaf',
    500: '#2c218c',
    950: '#000000',
  },
}
SCSS
$custom: #2c218c;
$custom-light: #745eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c218c",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 246.168,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34444,
    "c": 0.1667,
    "h": 277.7
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#2C218C
secondary
#AFB94F
accent
#E543D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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