#2C217C#2C217C

#2C217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.146 H 280.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2C217C
RGBrgb(44, 33, 124)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(64.5%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.35, 33.35, -49.83)
CIE-LCHlch(20.35, 59.96, 303.80°)
OKLaboklab(32.78% 0.0256 -0.1437)
OKLCHoklch(32.78% 0.146 280.1)
XYZxyz(5.2195, 3.0780, 19.3839)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C217C #717C21
analogous
#21437C #2C217C #59217C
triadic
#2C217C #7C2C21 #217C2C
tetradic
#2C217C #7C2143 #717C21 #217C59
square
#2C217C #7C2143 #717C21 #217C59
split-complementary
#2C217C #7C5921 #437C21
monochromatic
#0A071B #1B144C #2C217C #3D2EAC #5949CF

Accessibility & contrast

On white

13.00
#2C217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C217C
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C217C#FFFFFF#000000##FFFFFF
##2C217C1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c217c;
/* rgb */ color: rgb(44, 33, 124);
/* oklch */ color: oklch(32.8% 0.146 280.1);
Tailwind
colors: {
  custom: {
    50: '#705ea3',
    500: '#2c217c',
    950: '#000000',
  },
}
SCSS
$custom: #2c217c;
$custom-light: #705ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c217c",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 247.253,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32776,
    "c": 0.14598,
    "h": 280.1
  },
  "luminance": 0.03078
}

Semantic roles & 50–950 ramp

primary
#2C217C
secondary
#A3AF4A
accent
#E147CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C217C

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

Preview Lab → · Contrast checker → · Palette generator →

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