#2C1C84#2C1C84

#2C1C84 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 279.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2C1C84
RGBrgb(44, 28, 132)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 79%, 52%)
CMYKcmyk(66.7%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.17, 38.86, -55.20)
CIE-LCHlch(20.17, 67.51, 305.14°)
OKLaboklab(32.9% 0.0273 -0.1594)
OKLCHoklch(32.9% 0.162 279.7)
XYZxyz(5.6175, 3.0315, 22.1144)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C84 #74841C
analogous
#1C4084 #2C1C84 #601C84
triadic
#2C1C84 #842C1C #1C842C
tetradic
#2C1C84 #841C40 #74841C #1C8460
square
#2C1C84 #841C40 #74841C #1C8460
split-complementary
#2C1C84 #84601C #40841C
monochromatic
#0A071F #1B1152 #2C1C84 #3D27B6 #5A43D7

Accessibility & contrast

On white

13.07
#2C1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C84
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C84#FFFFFF#000000##FFFFFF
##2C1C841.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1c84;
/* rgb */ color: rgb(44, 28, 132);
/* oklch */ color: oklch(32.9% 0.162 279.7);
Tailwind
colors: {
  custom: {
    50: '#725ba9',
    500: '#2c1c84',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c84;
$custom-light: #725ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c84",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 249.231,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32897,
    "c": 0.16168,
    "h": 279.7
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#2C1C84
secondary
#A6B745
accent
#E840CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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