#2C216F#2C216F

#2C216F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.128 H 282.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2C216F
RGBrgb(44, 33, 111)
HSLhsl(248, 54%, 28%)
HSVhsv(248, 70%, 44%)
CMYKcmyk(60.4%, 70.3%, 0%, 56.5%)
CIE-LABlab(19.10, 28.93, -43.54)
CIE-LCHlch(19.10, 52.27, 303.60°)
OKLaboklab(31.49% 0.0279 -0.1253)
OKLCHoklch(31.49% 0.128 282.6)
XYZxyz(4.4509, 2.7706, 15.3361)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C216F #646F21
analogous
#213D6F #2C216F #53216F
triadic
#2C216F #6F2C21 #216F2C
tetradic
#2C216F #6F213D #646F21 #216F53
square
#2C216F #6F213D #646F21 #216F53
split-complementary
#2C216F #6F5321 #3D6F21
monochromatic
#090718 #191340 #2C216F #3F2F9E #5643C7

Accessibility & contrast

On white

13.51
#2C216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C216F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C216F#FFFFFF#000000##FFFFFF
##2C216F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#073545
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c216f;
/* rgb */ color: rgb(44, 33, 111);
/* oklch */ color: oklch(31.5% 0.128 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d5d99',
    500: '#2c216f',
    950: '#000000',
  },
}
SCSS
$custom: #2c216f;
$custom-light: #6d5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2c216f",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 248.462,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31493,
    "c": 0.12835,
    "h": 282.6
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#2C216F
secondary
#96A349
accent
#DE4AC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C216F

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

Preview Lab → · Contrast checker → · Palette generator →

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