#2C1C82#2C1C82

#2C1C82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.159 H 280.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2C1C82
RGBrgb(44, 28, 130)
HSLhsl(249, 65%, 31%)
HSVhsv(249, 78%, 51%)
CMYKcmyk(66.2%, 78.5%, 0%, 49%)
CIE-LABlab(19.95, 38.21, -54.30)
CIE-LCHlch(19.95, 66.40, 305.14°)
OKLaboklab(32.68% 0.0278 -0.1567)
OKLCHoklch(32.68% 0.159 280.1)
XYZxyz(5.4819, 2.9773, 21.4005)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C82 #72821C
analogous
#1C3F82 #2C1C82 #5F1C82
triadic
#2C1C82 #822C1C #1C822C
tetradic
#2C1C82 #821C3F #72821C #1C825F
square
#2C1C82 #821C3F #72821C #1C825F
split-complementary
#2C1C82 #825F1C #3F821C
monochromatic
#0A061D #1B1150 #2C1C82 #3D27B4 #5942D6

Accessibility & contrast

On white

13.16
#2C1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1C82
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C82#FFFFFF#000000##FFFFFF
##2C1C821.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1c82;
/* rgb */ color: rgb(44, 28, 130);
/* oklch */ color: oklch(32.7% 0.159 280.1);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2c1c82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c82;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c82",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 249.412,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.15917,
    "h": 280.1
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#2C1C82
secondary
#A4B544
accent
#E840CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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