#2C1D9D#2C1D9D

#2C1D9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.191 H 276.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2C1D9D
RGBrgb(44, 29, 157)
HSLhsl(247, 69%, 36%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(72%, 81.5%, 0%, 38.4%)
CIE-LABlab(23.16, 46.25, -65.78)
CIE-LCHlch(23.16, 80.41, 305.11°)
OKLaboklab(35.81% 0.0198 -0.1901)
OKLCHoklch(35.81% 0.191 276)
XYZxyz(7.5619, 3.8478, 32.2359)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D9D #8E9D1D
analogous
#1D4E9D #2C1D9D #6C1D9D
triadic
#2C1D9D #9D2C1D #1D9D2C
tetradic
#2C1D9D #9D1D4E #8E9D1D #1D9D6C
square
#2C1D9D #9D1D4E #8E9D1D #1D9D6C
split-complementary
#2C1D9D #9D6C1D #4E9D1D
monochromatic
#0F0A36 #1E1369 #2C1D9D #3A27D1 #6555E0

Accessibility & contrast

On white

11.87
#2C1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D9D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D9D#FFFFFF#000000##FFFFFF
##2C1D9D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1d9d;
/* rgb */ color: rgb(44, 29, 157);
/* oklch */ color: oklch(35.8% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#785dbb',
    500: '#2c1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d9d;
$custom-light: #785dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d9d",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 247.031,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35814,
    "c": 0.19117,
    "h": 276
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#2C1D9D
secondary
#B6C353
accent
#EC3CD7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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