#2C1AB4#2C1AB4

#2C1AB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.220 H 273.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2C1AB4
RGBrgb(44, 26, 180)
HSLhsl(247, 75%, 40%)
HSVhsv(247, 86%, 71%)
CMYKcmyk(75.6%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.47, 54.46, -75.85)
CIE-LCHlch(25.47, 93.38, 305.68°)
OKLaboklab(38.2% 0.0142 -0.2193)
OKLCHoklch(38.2% 0.22 273.7)
XYZxyz(9.6436, 4.5685, 43.5447)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1AB4 #A2B41A
analogous
#1A55B4 #2C1AB4 #791AB4
triadic
#2C1AB4 #B42C1A #1AB42C
tetradic
#2C1AB4 #B41A55 #A2B41A #1AB479
square
#2C1AB4 #B41A55 #A2B41A #1AB479
split-complementary
#2C1AB4 #B4791A #55B41A
monochromatic
#120B49 #1F127F #2C1AB4 #402BE0 #7060E8

Accessibility & contrast

On white

10.97
#2C1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1AB4
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1AB4#FFFFFF#000000##FFFFFF
##2C1AB41.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c1ab4;
/* rgb */ color: rgb(44, 26, 180);
/* oklch */ color: oklch(38.2% 0.220 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d5dcc',
    500: '#2c1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2c1ab4;
$custom-light: #7d5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1ab4",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 247.013,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38198,
    "c": 0.21976,
    "h": 273.7
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#2C1AB4
secondary
#BFCC5D
accent
#F136DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2C1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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