#2C1D9E#2C1D9E

#2C1D9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.192 H 275.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2C1D9E
RGBrgb(44, 29, 158)
HSLhsl(247, 69%, 37%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(72.2%, 81.6%, 0%, 38%)
CIE-LABlab(23.28, 46.56, -66.20)
CIE-LCHlch(23.28, 80.93, 305.12°)
OKLaboklab(35.93% 0.0196 -0.1914)
OKLCHoklch(35.93% 0.192 275.8)
XYZxyz(7.6476, 3.8821, 32.6874)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D9E #8F9E1D
analogous
#1D4F9E #2C1D9E #6D1D9E
triadic
#2C1D9E #9E2C1D #1D9E2C
tetradic
#2C1D9E #9E1D4F #8F9E1D #1D9E6D
square
#2C1D9E #9E1D4F #8F9E1D #1D9E6D
split-complementary
#2C1D9E #9E6D1D #4F9E1D
monochromatic
#0F0A37 #1E146A #2C1D9E #3A26D2 #6656E0

Accessibility & contrast

On white

11.82
#2C1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D9E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D9E#FFFFFF#000000##FFFFFF
##2C1D9E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1d9e;
/* rgb */ color: rgb(44, 29, 158);
/* oklch */ color: oklch(35.9% 0.192 275.8);
Tailwind
colors: {
  custom: {
    50: '#785dbc',
    500: '#2c1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d9e;
$custom-light: #785dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d9e",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 246.977,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35928,
    "c": 0.19236,
    "h": 275.8
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#2C1D9E
secondary
#B6C354
accent
#EC3CD7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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