#2C1A9B#2C1A9B

#2C1A9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.191 H 276.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1A9B
RGBrgb(44, 26, 155)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 61%)
CMYKcmyk(71.6%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.44, 47.05, -65.74)
CIE-LCHlch(22.44, 80.84, 305.59°)
OKLaboklab(35.25% 0.0216 -0.19)
OKLCHoklch(35.25% 0.191 276.5)
XYZxyz(7.3226, 3.6401, 31.3207)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A9B #899B1A
analogous
#1A489B #2C1A9B #6C1A9B
triadic
#2C1A9B #9B2C1A #1A9B2C
tetradic
#2C1A9B #9B1A48 #899B1A #1A9B6C
square
#2C1A9B #9B1A48 #899B1A #1A9B6C
split-complementary
#2C1A9B #9B6C1A #489B1A
monochromatic
#0E0832 #1D1167 #2C1A9B #3B23CF #634EE1

Accessibility & contrast

On white

12.15
#2C1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A9B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A9B#FFFFFF#000000##FFFFFF
##2C1A9B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1a9b;
/* rgb */ color: rgb(44, 26, 155);
/* oklch */ color: oklch(35.2% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#785bba',
    500: '#2c1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a9b;
$custom-light: #785bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a9b",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 248.372,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35249,
    "c": 0.19122,
    "h": 276.5
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#2C1A9B
secondary
#B3C44D
accent
#EE3AD5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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