#2C2181#2C2181

#2C2181 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.153 H 279.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2C2181
RGBrgb(44, 33, 129)
HSLhsl(247, 59%, 32%)
HSVhsv(247, 74%, 51%)
CMYKcmyk(65.9%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.86, 35.04, -52.17)
CIE-LCHlch(20.86, 62.85, 303.88°)
OKLaboklab(33.29% 0.0246 -0.1506)
OKLCHoklch(33.29% 0.153 279.3)
XYZxyz(5.5437, 3.2077, 21.0916)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2181 #768121
analogous
#214681 #2C2181 #5C2181
triadic
#2C2181 #812C21 #21812C
tetradic
#2C2181 #812146 #768121 #21815C
square
#2C2181 #812146 #768121 #21815C
split-complementary
#2C2181 #815C21 #468121
monochromatic
#0B0820 #1B1550 #2C2181 #3D2DB2 #5B4BD1

Accessibility & contrast

On white

12.79
#2C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2181
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2181#FFFFFF#000000##FFFFFF
##2C21811.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c2181;
/* rgb */ color: rgb(44, 33, 129);
/* oklch */ color: oklch(33.3% 0.153 279.3);
Tailwind
colors: {
  custom: {
    50: '#715ea7',
    500: '#2c2181',
    950: '#000000',
  },
}
SCSS
$custom: #2c2181;
$custom-light: #715ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2181",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 246.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33288,
    "c": 0.15256,
    "h": 279.3
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#2C2181
secondary
#A7B44A
accent
#E245D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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