#2C1C83#2C1C83

#2C1C83 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.160 H 279.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2C1C83
RGBrgb(44, 28, 131)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 79%, 51%)
CMYKcmyk(66.4%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.06, 38.54, -54.75)
CIE-LCHlch(20.06, 66.95, 305.14°)
OKLaboklab(32.79% 0.0276 -0.158)
OKLCHoklch(32.79% 0.16 279.9)
XYZxyz(5.5494, 3.0042, 21.7558)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C83 #73831C
analogous
#1C3F83 #2C1C83 #5F1C83
triadic
#2C1C83 #832C1C #1C832C
tetradic
#2C1C83 #831C3F #73831C #1C835F
square
#2C1C83 #831C3F #73831C #1C835F
split-complementary
#2C1C83 #835F1C #3F831C
monochromatic
#0A061E #1B1151 #2C1C83 #3D27B5 #5A43D7

Accessibility & contrast

On white

13.12
#2C1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C83
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C83#FFFFFF#000000##FFFFFF
##2C1C831.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1c83;
/* rgb */ color: rgb(44, 28, 131);
/* oklch */ color: oklch(32.8% 0.160 279.9);
Tailwind
colors: {
  custom: {
    50: '#725ba8',
    500: '#2c1c83',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c83;
$custom-light: #725ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c83",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 249.32,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.16042,
    "h": 279.9
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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