#2C218A#2C218A

#2C218A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.164 H 277.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2C218A
RGBrgb(44, 33, 138)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 54%)
CMYKcmyk(68.1%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.79, 38.04, -56.29)
CIE-LCHlch(21.79, 67.94, 304.05°)
OKLaboklab(34.23% 0.0227 -0.1626)
OKLCHoklch(34.23% 0.164 277.9)
XYZxyz(6.1685, 3.4576, 24.3821)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C218A #7F8A21
analogous
#214A8A #2C218A #60218A
triadic
#2C218A #8A2C21 #218A2C
tetradic
#2C218A #8A214A #7F8A21 #218A60
square
#2C218A #8A214A #7F8A21 #218A60
split-complementary
#2C218A #8A6021 #4A8A21
monochromatic
#0D0927 #1C1559 #2C218A #3C2DBB #5E50D5

Accessibility & contrast

On white

12.41
#2C218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C218A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C218A#FFFFFF#000000##FFFFFF
##2C218A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c218a;
/* rgb */ color: rgb(44, 33, 138);
/* oklch */ color: oklch(34.2% 0.164 277.9);
Tailwind
colors: {
  custom: {
    50: '#735ead',
    500: '#2c218a',
    950: '#000000',
  },
}
SCSS
$custom: #2c218a;
$custom-light: #735ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2c218a",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 246.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34231,
    "c": 0.16416,
    "h": 277.9
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#2C218A
secondary
#ADB94E
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C218A

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

Preview Lab → · Contrast checker → · Palette generator →

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