#2C218F#2C218F

#2C218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 277.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2C218F
RGBrgb(44, 33, 143)
HSLhsl(246, 63%, 35%)
HSVhsv(246, 77%, 56%)
CMYKcmyk(69.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.32, 39.69, -58.53)
CIE-LCHlch(22.32, 70.72, 304.14°)
OKLaboklab(34.77% 0.0215 -0.1691)
OKLCHoklch(34.77% 0.17 277.2)
XYZxyz(6.5389, 3.6058, 26.3327)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C218F #848F21
analogous
#214D8F #2C218F #63218F
triadic
#2C218F #8F2C21 #218F2C
tetradic
#2C218F #8F214D #848F21 #218F63
square
#2C218F #8F214D #848F21 #218F63
split-complementary
#2C218F #8F6321 #4D8F21
monochromatic
#0D0A2C #1D165D #2C218F #3B2CC1 #6053D7

Accessibility & contrast

On white

12.20
#2C218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C218F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C218F#FFFFFF#000000##FFFFFF
##2C218F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c218f;
/* rgb */ color: rgb(44, 33, 143);
/* oklch */ color: oklch(34.8% 0.170 277.2);
Tailwind
colors: {
  custom: {
    50: '#745eb1',
    500: '#2c218f',
    950: '#000000',
  },
}
SCSS
$custom: #2c218f;
$custom-light: #745eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c218f",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 246,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.17048,
    "h": 277.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#2C218F
secondary
#B0BB51
accent
#E642D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C218F

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

Preview Lab → · Contrast checker → · Palette generator →

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