#2C217D#2C217D

#2C217D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.147 H 279.9°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2C217D
RGBrgb(44, 33, 125)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 74%, 49%)
CMYKcmyk(64.8%, 73.6%, 0%, 51%)
CIE-LABlab(20.45, 33.69, -50.30)
CIE-LCHlch(20.45, 60.54, 303.81°)
OKLaboklab(32.88% 0.0255 -0.1451)
OKLCHoklch(32.88% 0.147 279.9)
XYZxyz(5.2831, 3.1035, 19.7187)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C217D #727D21
analogous
#21447D #2C217D #5A217D
triadic
#2C217D #7D2C21 #217D2C
tetradic
#2C217D #7D2144 #727D21 #217D5A
square
#2C217D #7D2144 #727D21 #217D5A
split-complementary
#2C217D #7D5A21 #447D21
monochromatic
#0A071C #1B144D #2C217D #3D2EAD #5949CF

Accessibility & contrast

On white

12.96
#2C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C217D
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C217D#FFFFFF#000000##FFFFFF
##2C217D1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c217d;
/* rgb */ color: rgb(44, 33, 125);
/* oklch */ color: oklch(32.9% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2c217d',
    950: '#000000',
  },
}
SCSS
$custom: #2c217d;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c217d",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 247.174,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.14731,
    "h": 279.9
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#2C217D
secondary
#A4B04A
accent
#E146CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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