#2C1A8B#2C1A8B

#2C1A8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.172 H 278.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2C1A8B
RGBrgb(44, 26, 139)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(68.3%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.59, 42.12, -58.91)
CIE-LCHlch(20.59, 72.41, 305.56°)
OKLaboklab(33.42% 0.0264 -0.1701)
OKLCHoklch(33.42% 0.172 278.8)
XYZxyz(6.0668, 3.1378, 24.7070)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A8B #798B1A
analogous
#1A408B #2C1A8B #651A8B
triadic
#2C1A8B #8B2C1A #1A8B2C
tetradic
#2C1A8B #8B1A40 #798B1A #1A8B65
square
#2C1A8B #8B1A40 #798B1A #1A8B65
split-complementary
#2C1A8B #8B651A #408B1A
monochromatic
#0B0724 #1C1057 #2C1A8B #3C24BF #5C43DC

Accessibility & contrast

On white

12.90
#2C1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A8B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A8B#FFFFFF#000000##FFFFFF
##2C1A8B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1a8b;
/* rgb */ color: rgb(44, 26, 139);
/* oklch */ color: oklch(33.4% 0.172 278.8);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2c1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a8b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a8b",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 249.558,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3342,
    "c": 0.17217,
    "h": 278.8
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#2C1A8B
secondary
#AABD44
accent
#EB3CCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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