#2C1BA1#2C1BA1

#2C1BA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.197 H 275.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1BA1
RGBrgb(44, 27, 161)
HSLhsl(248, 71%, 37%)
HSVhsv(248, 83%, 63%)
CMYKcmyk(72.7%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.31, 48.41, -67.97)
CIE-LCHlch(23.31, 83.45, 305.46°)
OKLaboklab(36.05% 0.0195 -0.1965)
OKLCHoklch(36.05% 0.197 275.7)
XYZxyz(7.8616, 3.8918, 34.0482)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1BA1 #90A11B
analogous
#1B4DA1 #2C1BA1 #6F1BA1
triadic
#2C1BA1 #A12C1B #1BA12C
tetradic
#2C1BA1 #A11B4D #90A11B #1BA16F
square
#2C1BA1 #A11B4D #90A11B #1BA16F
split-complementary
#2C1BA1 #A16F1B #4DA11B
monochromatic
#0F0938 #1E126D #2C1BA1 #3A24D5 #6654E2

Accessibility & contrast

On white

11.81
#2C1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1BA1
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1BA1#FFFFFF#000000##FFFFFF
##2C1BA11.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c1ba1;
/* rgb */ color: rgb(44, 27, 161);
/* oklch */ color: oklch(36.1% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#795cbe',
    500: '#2c1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2c1ba1;
$custom-light: #795cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1ba1",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 247.612,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36053,
    "c": 0.19745,
    "h": 275.7
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#2C1BA1
secondary
#B7C552
accent
#EE3AD7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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