#2C1E83#2C1E83

#2C1E83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.158 H 279.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1E83
RGBrgb(44, 30, 131)
HSLhsl(248, 63%, 32%)
HSVhsv(248, 77%, 51%)
CMYKcmyk(66.4%, 77.1%, 0%, 48.6%)
CIE-LABlab(20.45, 37.43, -54.11)
CIE-LCHlch(20.45, 65.80, 304.68°)
OKLaboklab(33.06% 0.0263 -0.1562)
OKLCHoklch(33.06% 0.158 279.5)
XYZxyz(5.5984, 3.1023, 21.7721)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E83 #75831E
analogous
#1E4383 #2C1E83 #5F1E83
triadic
#2C1E83 #832C1E #1E832C
tetradic
#2C1E83 #831E43 #75831E #1E835F
square
#2C1E83 #831E43 #75831E #1E835F
split-complementary
#2C1E83 #835F1E #43831E
monochromatic
#0B071F #1B1351 #2C1E83 #3D29B5 #5A47D5

Accessibility & contrast

On white

12.96
#2C1E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C1E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E83
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E83#FFFFFF#000000##FFFFFF
##2C1E831.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1e83;
/* rgb */ color: rgb(44, 30, 131);
/* oklch */ color: oklch(33.1% 0.158 279.5);
Tailwind
colors: {
  custom: {
    50: '#725ca8',
    500: '#2c1e83',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e83;
$custom-light: #725ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e83",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 248.317,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33061,
    "c": 0.15839,
    "h": 279.5
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#2C1E83
secondary
#A7B647
accent
#E642CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1E83

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

Preview Lab → · Contrast checker → · Palette generator →

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