#2C1A8A#2C1A8A

#2C1A8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.171 H 279.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2C1A8A
RGBrgb(44, 26, 138)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 54%)
CMYKcmyk(68.1%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.47, 41.80, -58.47)
CIE-LCHlch(20.47, 71.88, 305.57°)
OKLaboklab(33.31% 0.0267 -0.1688)
OKLCHoklch(33.31% 0.171 279)
XYZxyz(5.9941, 3.1087, 24.3240)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A8A #788A1A
analogous
#1A408A #2C1A8A #641A8A
triadic
#2C1A8A #8A2C1A #1A8A2C
tetradic
#2C1A8A #8A1A40 #788A1A #1A8A64
square
#2C1A8A #8A1A40 #788A1A #1A8A64
split-complementary
#2C1A8A #8A641A #408A1A
monochromatic
#0B0723 #1C1057 #2C1A8A #3C24BD #5B43DC

Accessibility & contrast

On white

12.95
#2C1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A8A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A8A#FFFFFF#000000##FFFFFF
##2C1A8A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1a8a;
/* rgb */ color: rgb(44, 26, 138);
/* oklch */ color: oklch(33.3% 0.171 279.0);
Tailwind
colors: {
  custom: {
    50: '#745aad',
    500: '#2c1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a8a;
$custom-light: #745aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a8a",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 249.643,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33307,
    "c": 0.17095,
    "h": 279
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#2C1A8A
secondary
#A9BD43
accent
#EB3DCF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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