#2C1D99#2C1D99

#2C1D99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.186 H 276.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2C1D99
RGBrgb(44, 29, 153)
HSLhsl(247, 68%, 36%)
HSVhsv(247, 81%, 60%)
CMYKcmyk(71.2%, 81%, 0%, 40%)
CIE-LABlab(22.70, 45.00, -64.09)
CIE-LCHlch(22.70, 78.31, 305.08°)
OKLaboklab(35.36% 0.021 -0.1852)
OKLCHoklch(35.36% 0.186 276.5)
XYZxyz(7.2260, 3.7134, 30.4668)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D99 #8A991D
analogous
#1D4C99 #2C1D99 #6A1D99
triadic
#2C1D99 #992C1D #1D992C
tetradic
#2C1D99 #991D4C #8A991D #1D996A
square
#2C1D99 #991D4C #8A991D #1D996A
split-complementary
#2C1D99 #996A1D #4C991D
monochromatic
#0E0932 #1D1366 #2C1D99 #3B27CC #6352DE

Accessibility & contrast

On white

12.05
#2C1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D99
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D99#FFFFFF#000000##FFFFFF
##2C1D991.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1d99;
/* rgb */ color: rgb(44, 29, 153);
/* oklch */ color: oklch(35.4% 0.186 276.5);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2c1d99',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d99;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d99",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 247.258,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.18642,
    "h": 276.5
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#2C1D99
secondary
#B4C151
accent
#EB3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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