#2C1C9D#2C1C9D

#2C1C9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.192 H 276.1°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2C1C9D
RGBrgb(44, 28, 157)
HSLhsl(247, 70%, 36%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(72%, 82.2%, 0%, 38.4%)
CIE-LABlab(23.00, 46.73, -66.05)
CIE-LCHlch(23.00, 80.91, 305.28°)
OKLaboklab(35.7% 0.0203 -0.1909)
OKLCHoklch(35.7% 0.192 276.1)
XYZxyz(7.5378, 3.7996, 32.2279)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C9D #8D9D1C
analogous
#1C4D9D #2C1C9D #6D1C9D
triadic
#2C1C9D #9D2C1C #1C9D2C
tetradic
#2C1C9D #9D1C4D #8D9D1C #1C9D6D
square
#2C1C9D #9D1C4D #8D9D1C #1C9D6D
split-complementary
#2C1C9D #9D6D1C #4D9D1C
monochromatic
#0F0935 #1D1369 #2C1C9D #3B25D1 #6553E0

Accessibility & contrast

On white

11.93
#2C1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C9D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C9D#FFFFFF#000000##FFFFFF
##2C1C9D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1c9d;
/* rgb */ color: rgb(44, 28, 157);
/* oklch */ color: oklch(35.7% 0.192 276.1);
Tailwind
colors: {
  custom: {
    50: '#785dbb',
    500: '#2c1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c9d;
$custom-light: #785dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c9d",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 247.442,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.357,
    "c": 0.19199,
    "h": 276.1
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#2C1C9D
secondary
#B5C351
accent
#ED3BD7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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