#2C1B95#2C1B95

#2C1B95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 277.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2C1B95
RGBrgb(44, 27, 149)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.5%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.90, 44.74, -62.94)
CIE-LCHlch(21.90, 77.22, 305.40°)
OKLaboklab(34.67% 0.023 -0.1819)
OKLCHoklch(34.67% 0.183 277.2)
XYZxyz(6.8537, 3.4886, 28.7401)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B95 #84951B
analogous
#1B4795 #2C1B95 #691B95
triadic
#2C1B95 #952C1B #1B952C
tetradic
#2C1B95 #951B47 #84951B #1B9569
square
#2C1B95 #951B47 #84951B #1B9569
split-complementary
#2C1B95 #95691B #47951B
monochromatic
#0D082D #1D1261 #2C1B95 #3B24C9 #604CDF

Accessibility & contrast

On white

12.37
#2C1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B95
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B95#FFFFFF#000000##FFFFFF
##2C1B951.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1b95;
/* rgb */ color: rgb(44, 27, 149);
/* oklch */ color: oklch(34.7% 0.183 277.2);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2c1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b95;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b95",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 248.361,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3467,
    "c": 0.18333,
    "h": 277.2
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#2C1B95
secondary
#B0C14B
accent
#EC3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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