#2C1A99#2C1A99

#2C1A99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.189 H 276.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2C1A99
RGBrgb(44, 26, 153)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 60%)
CMYKcmyk(71.2%, 83%, 0%, 40%)
CIE-LABlab(22.21, 46.44, -64.90)
CIE-LCHlch(22.21, 79.81, 305.58°)
OKLaboklab(35.02% 0.0222 -0.1876)
OKLCHoklch(35.02% 0.189 276.8)
XYZxyz(7.1560, 3.5735, 30.4435)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A99 #87991A
analogous
#1A4799 #2C1A99 #6C1A99
triadic
#2C1A99 #992C1A #1A992C
tetradic
#2C1A99 #991A47 #87991A #1A996C
square
#2C1A99 #991A47 #87991A #1A996C
split-complementary
#2C1A99 #996C1A #47991A
monochromatic
#0E0830 #1D1165 #2C1A99 #3B23CD #624DE1

Accessibility & contrast

On white

12.25
#2C1A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A99
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A99#FFFFFF#000000##FFFFFF
##2C1A991.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1a99;
/* rgb */ color: rgb(44, 26, 153);
/* oklch */ color: oklch(35.0% 0.189 276.8);
Tailwind
colors: {
  custom: {
    50: '#775bb8',
    500: '#2c1a99',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a99;
$custom-light: #775bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a99",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 248.504,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35017,
    "c": 0.18887,
    "h": 276.8
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#2C1A99
secondary
#B2C34C
accent
#EE3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1A99

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

Preview Lab → · Contrast checker → · Palette generator →

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