#2C217F#2C217F

#2C217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.150 H 279.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2C217F
RGBrgb(44, 33, 127)
HSLhsl(247, 59%, 31%)
HSVhsv(247, 74%, 50%)
CMYKcmyk(65.4%, 74%, 0%, 50.2%)
CIE-LABlab(20.65, 34.36, -51.24)
CIE-LCHlch(20.65, 61.70, 303.85°)
OKLaboklab(33.08% 0.025 -0.1478)
OKLCHoklch(33.08% 0.15 279.6)
XYZxyz(5.4121, 3.1551, 20.3983)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C217F #747F21
analogous
#21457F #2C217F #5B217F
triadic
#2C217F #7F2C21 #217F2C
tetradic
#2C217F #7F2145 #747F21 #217F5B
square
#2C217F #7F2145 #747F21 #217F5B
split-complementary
#2C217F #7F5B21 #457F21
monochromatic
#0A081E #1B144E #2C217F #3D2EB0 #5A4AD0

Accessibility & contrast

On white

12.88
#2C217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C217F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C217F#FFFFFF#000000##FFFFFF
##2C217F1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c217f;
/* rgb */ color: rgb(44, 33, 127);
/* oklch */ color: oklch(33.1% 0.150 279.6);
Tailwind
colors: {
  custom: {
    50: '#715ea5',
    500: '#2c217f',
    950: '#000000',
  },
}
SCSS
$custom: #2c217f;
$custom-light: #715ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c217f",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 247.021,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33082,
    "c": 0.14995,
    "h": 279.6
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#2C217F
secondary
#A6B24A
accent
#E246D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C217F

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

Preview Lab → · Contrast checker → · Palette generator →

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