#2C1C81#2C1C81

#2C1C81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.158 H 280.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2C1C81
RGBrgb(44, 28, 129)
HSLhsl(250, 64%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(65.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.84, 37.89, -53.84)
CIE-LCHlch(19.84, 65.84, 305.14°)
OKLaboklab(32.57% 0.0281 -0.1554)
OKLCHoklch(32.57% 0.158 280.2)
XYZxyz(5.4152, 2.9505, 21.0488)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C81 #71811C
analogous
#1C3E81 #2C1C81 #5E1C81
triadic
#2C1C81 #812C1C #1C812C
tetradic
#2C1C81 #811C3E #71811C #1C815E
square
#2C1C81 #811C3E #71811C #1C815E
split-complementary
#2C1C81 #815E1C #3E811C
monochromatic
#0A061C #1B114F #2C1C81 #3D27B3 #5942D6

Accessibility & contrast

On white

13.21
#2C1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C81
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C81#FFFFFF#000000##FFFFFF
##2C1C811.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1c81;
/* rgb */ color: rgb(44, 28, 129);
/* oklch */ color: oklch(32.6% 0.158 280.2);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2c1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c81;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c81",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 249.505,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.15792,
    "h": 280.2
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#2C1C81
secondary
#A3B444
accent
#E740CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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