#2C1C8B#2C1C8B

#2C1C8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.170 H 278.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2C1C8B
RGBrgb(44, 28, 139)
HSLhsl(249, 66%, 33%)
HSVhsv(249, 80%, 55%)
CMYKcmyk(68.3%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.94, 41.10, -58.32)
CIE-LCHlch(20.94, 71.35, 305.17°)
OKLaboklab(33.67% 0.0254 -0.1684)
OKLCHoklch(33.67% 0.17 278.6)
XYZxyz(6.1127, 3.2295, 24.7223)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C8B #7B8B1C
analogous
#1C438B #2C1C8B #641C8B
triadic
#2C1C8B #8B2C1C #1C8B2C
tetradic
#2C1C8B #8B1C43 #7B8B1C #1C8B64
square
#2C1C8B #8B1C43 #7B8B1C #1C8B64
split-complementary
#2C1C8B #8B641C #438B1C
monochromatic
#0C0725 #1C1258 #2C1C8B #3C26BE #5D47DA

Accessibility & contrast

On white

12.76
#2C1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1C8B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C8B#FFFFFF#000000##FFFFFF
##2C1C8B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1c8b;
/* rgb */ color: rgb(44, 28, 139);
/* oklch */ color: oklch(33.7% 0.170 278.6);
Tailwind
colors: {
  custom: {
    50: '#745bae',
    500: '#2c1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c8b;
$custom-light: #745bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c8b",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 248.649,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33666,
    "c": 0.17035,
    "h": 278.6
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#2C1C8B
secondary
#ABBC47
accent
#E93ED1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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