#2C1C8C#2C1C8C

#2C1C8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.172 H 278.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2C1C8C
RGBrgb(44, 28, 140)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 80%, 55%)
CMYKcmyk(68.6%, 80%, 0%, 45.1%)
CIE-LABlab(21.05, 41.42, -58.76)
CIE-LCHlch(21.05, 71.89, 305.18°)
OKLaboklab(33.78% 0.0251 -0.1697)
OKLCHoklch(33.78% 0.172 278.4)
XYZxyz(6.1861, 3.2589, 25.1089)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C8C #7C8C1C
analogous
#1C448C #2C1C8C #641C8C
triadic
#2C1C8C #8C2C1C #1C8C2C
tetradic
#2C1C8C #8C1C44 #7C8C1C #1C8C64
square
#2C1C8C #8C1C44 #7C8C1C #1C8C64
split-complementary
#2C1C8C #8C641C #448C1C
monochromatic
#0C0826 #1C1259 #2C1C8C #3C26BF #5D48DA

Accessibility & contrast

On white

12.71
#2C1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C8C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C8C#FFFFFF#000000##FFFFFF
##2C1C8C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1c8c;
/* rgb */ color: rgb(44, 28, 140);
/* oklch */ color: oklch(33.8% 0.172 278.4);
Tailwind
colors: {
  custom: {
    50: '#745baf',
    500: '#2c1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c8c;
$custom-light: #745baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c8c",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 248.571,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33777,
    "c": 0.17158,
    "h": 278.4
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#2C1C8C
secondary
#ACBC48
accent
#EA3ED1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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