#2C1D82#2C1D82

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

Color values

HEX#2C1D82
RGBrgb(44, 29, 130)
HSLhsl(249, 64%, 31%)
HSVhsv(249, 78%, 51%)
CMYKcmyk(66.2%, 77.7%, 0%, 49%)
CIE-LABlab(20.15, 37.67, -53.98)
CIE-LCHlch(20.15, 65.82, 304.91°)
OKLaboklab(32.82% 0.0272 -0.1558)
OKLCHoklch(32.82% 0.158 279.9)
XYZxyz(5.5061, 3.0255, 21.4086)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D82 #73821D
analogous
#1D4082 #2C1D82 #5E1D82
triadic
#2C1D82 #822C1D #1D822C
tetradic
#2C1D82 #821D40 #73821D #1D825E
square
#2C1D82 #821D40 #73821D #1D825E
split-complementary
#2C1D82 #825E1D #40821D
monochromatic
#0A071E #1B1250 #2C1D82 #3D28B4 #5A44D5

Accessibility & contrast

On white

13.08
#2C1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D82
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D82#FFFFFF#000000##FFFFFF
##2C1D821.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1d82;
/* rgb */ color: rgb(44, 29, 130);
/* oklch */ color: oklch(32.8% 0.158 279.9);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2c1d82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d82;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d82",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 248.911,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32815,
    "c": 0.15815,
    "h": 279.9
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#2C1D82
secondary
#A5B546
accent
#E741CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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