#2C1E9D#2C1E9D

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

Color values

HEX#2C1E9D
RGBrgb(44, 30, 157)
HSLhsl(247, 68%, 37%)
HSVhsv(247, 81%, 62%)
CMYKcmyk(72%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.33, 45.76, -65.50)
CIE-LCHlch(23.33, 79.90, 304.94°)
OKLaboklab(35.93% 0.0194 -0.1893)
OKLCHoklch(35.93% 0.19 275.9)
XYZxyz(7.5868, 3.8976, 32.2442)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E9D #8F9D1E
analogous
#1E509D #2C1E9D #6C1E9D
triadic
#2C1E9D #9D2C1E #1E9D2C
tetradic
#2C1E9D #9D1E50 #8F9D1E #1E9D6C
square
#2C1E9D #9D1E50 #8F9D1E #1E9D6C
split-complementary
#2C1E9D #9D6C1E #509D1E
monochromatic
#0F0A36 #1E146A #2C1E9D #3A28D0 #6657DF

Accessibility & contrast

On white

11.80
#2C1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1E9D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E9D#FFFFFF#000000##FFFFFF
##2C1E9D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1e9d;
/* rgb */ color: rgb(44, 30, 157);
/* oklch */ color: oklch(35.9% 0.190 275.9);
Tailwind
colors: {
  custom: {
    50: '#785ebb',
    500: '#2c1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e9d;
$custom-light: #785ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e9d",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 246.614,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35931,
    "c": 0.19034,
    "h": 275.9
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#2C1E9D
secondary
#B6C254
accent
#EB3DD8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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