#2C218D#2C218D

#2C218D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.168 H 277.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2C218D
RGBrgb(44, 33, 141)
HSLhsl(246, 62%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(68.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.11, 39.03, -57.64)
CIE-LCHlch(22.11, 69.61, 304.10°)
OKLaboklab(34.55% 0.022 -0.1665)
OKLCHoklch(34.55% 0.168 277.5)
XYZxyz(6.3887, 3.5457, 25.5419)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C218D #828D21
analogous
#214C8D #2C218D #62218D
triadic
#2C218D #8D2C21 #218D2C
tetradic
#2C218D #8D214C #828D21 #218D62
square
#2C218D #8D214C #828D21 #218D62
split-complementary
#2C218D #8D6221 #4C8D21
monochromatic
#0D0A2A #1D155B #2C218D #3B2DBF #5F52D6

Accessibility & contrast

On white

12.29
#2C218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C218D
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C218D#FFFFFF#000000##FFFFFF
##2C218D1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c218d;
/* rgb */ color: rgb(44, 33, 141);
/* oklch */ color: oklch(34.6% 0.168 277.5);
Tailwind
colors: {
  custom: {
    50: '#745eaf',
    500: '#2c218d',
    950: '#000000',
  },
}
SCSS
$custom: #2c218d;
$custom-light: #745eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c218d",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 246.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34551,
    "c": 0.16796,
    "h": 277.5
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#2C218D
secondary
#AFBA50
accent
#E543D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C218D

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

Preview Lab → · Contrast checker → · Palette generator →

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