#2C1B9D#2C1B9D

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

Color values

HEX#2C1B9D
RGBrgb(44, 27, 157)
HSLhsl(248, 71%, 36%)
HSVhsv(248, 83%, 62%)
CMYKcmyk(72%, 82.8%, 0%, 38.4%)
CIE-LABlab(22.84, 47.20, -66.32)
CIE-LCHlch(22.84, 81.40, 305.44°)
OKLaboklab(35.59% 0.0206 -0.1917)
OKLCHoklch(35.59% 0.193 276.1)
XYZxyz(7.5145, 3.7529, 32.2201)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B9D #8C9D1B
analogous
#1B4B9D #2C1B9D #6D1B9D
triadic
#2C1B9D #9D2C1B #1B9D2C
tetradic
#2C1B9D #9D1B4B #8C9D1B #1B9D6D
square
#2C1B9D #9D1B4B #8C9D1B #1B9D6D
split-complementary
#2C1B9D #9D6D1B #4B9D1B
monochromatic
#0F0935 #1D1269 #2C1B9D #3B24D1 #6451E1

Accessibility & contrast

On white

11.99
#2C1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C1B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B9D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B9D#FFFFFF#000000##FFFFFF
##2C1B9D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1b9d;
/* rgb */ color: rgb(44, 27, 157);
/* oklch */ color: oklch(35.6% 0.193 276.1);
Tailwind
colors: {
  custom: {
    50: '#785cbb',
    500: '#2c1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b9d;
$custom-light: #785cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b9d",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 247.846,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.19278,
    "h": 276.1
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#2C1B9D
secondary
#B5C450
accent
#ED3AD6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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