#2C1C9B#2C1C9B

#2C1C9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.190 H 276.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2C1C9B
RGBrgb(44, 28, 155)
HSLhsl(248, 69%, 36%)
HSVhsv(248, 82%, 61%)
CMYKcmyk(71.6%, 81.9%, 0%, 39.2%)
CIE-LABlab(22.76, 46.11, -65.21)
CIE-LCHlch(22.76, 79.87, 305.26°)
OKLaboklab(35.47% 0.0208 -0.1885)
OKLCHoklch(35.47% 0.19 276.3)
XYZxyz(7.3684, 3.7318, 31.3360)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C9B #8B9B1C
analogous
#1C4B9B #2C1C9B #6B1C9B
triadic
#2C1C9B #9B2C1C #1C9B2C
tetradic
#2C1C9B #9B1C4B #8B9B1C #1C9B6B
square
#2C1C9B #9B1C4B #8B9B1C #1C9B6B
split-complementary
#2C1C9B #9B6B1C #4B9B1C
monochromatic
#0F0933 #1D1367 #2C1C9B #3B25CF #6452E0

Accessibility & contrast

On white

12.02
#2C1C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1C9B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C9B#FFFFFF#000000##FFFFFF
##2C1C9B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1c9b;
/* rgb */ color: rgb(44, 28, 155);
/* oklch */ color: oklch(35.5% 0.190 276.3);
Tailwind
colors: {
  custom: {
    50: '#775cba',
    500: '#2c1c9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c9b;
$custom-light: #775cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c9b",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 247.559,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.18963,
    "h": 276.3
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#2C1C9B
secondary
#B4C350
accent
#EC3CD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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