#2C1E82#2C1E82

#2C1E82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.157 H 279.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1E82
RGBrgb(44, 30, 130)
HSLhsl(248, 63%, 31%)
HSVhsv(248, 77%, 51%)
CMYKcmyk(66.2%, 76.9%, 0%, 49%)
CIE-LABlab(20.34, 37.11, -53.65)
CIE-LCHlch(20.34, 65.23, 304.67°)
OKLaboklab(32.95% 0.0265 -0.1549)
OKLCHoklch(32.95% 0.157 279.7)
XYZxyz(5.5310, 3.0753, 21.4169)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E82 #74821E
analogous
#1E4282 #2C1E82 #5E1E82
triadic
#2C1E82 #822C1E #1E822C
tetradic
#2C1E82 #821E42 #74821E #1E825E
square
#2C1E82 #821E42 #74821E #1E825E
split-complementary
#2C1E82 #825E1E #42821E
monochromatic
#0A071F #1B1350 #2C1E82 #3D29B4 #5A46D4

Accessibility & contrast

On white

13.00
#2C1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1E82
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E82#FFFFFF#000000##FFFFFF
##2C1E821.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1e82;
/* rgb */ color: rgb(44, 30, 130);
/* oklch */ color: oklch(33.0% 0.157 279.7);
Tailwind
colors: {
  custom: {
    50: '#725ca7',
    500: '#2c1e82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e82;
$custom-light: #725ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e82",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 248.4,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32954,
    "c": 0.15711,
    "h": 279.7
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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