#2C1E7D#2C1E7D

#2C1E7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 280.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2C1E7D
RGBrgb(44, 30, 125)
HSLhsl(249, 61%, 30%)
HSVhsv(249, 76%, 49%)
CMYKcmyk(64.8%, 76%, 0%, 51%)
CIE-LABlab(19.82, 35.46, -51.35)
CIE-LCHlch(19.82, 62.40, 304.63°)
OKLaboklab(32.43% 0.0277 -0.1481)
OKLCHoklch(32.43% 0.151 280.6)
XYZxyz(5.2035, 2.9443, 19.6922)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E7D #6F7D1E
analogous
#1E3F7D #2C1E7D #5B1E7D
triadic
#2C1E7D #7D2C1E #1E7D2C
tetradic
#2C1E7D #7D1E3F #6F7D1E #1E7D5B
square
#2C1E7D #7D1E3F #6F7D1E #1E7D5B
split-complementary
#2C1E7D #7D5B1E #3F7D1E
monochromatic
#09061A #1B124C #2C1E7D #3D2AAE #5843D2

Accessibility & contrast

On white

13.22
#2C1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E7D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E7D#FFFFFF#000000##FFFFFF
##2C1E7D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1e7d;
/* rgb */ color: rgb(44, 30, 125);
/* oklch */ color: oklch(32.4% 0.151 280.6);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2c1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e7d;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e7d",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 248.842,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.1507,
    "h": 280.6
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#2C1E7D
secondary
#A1B046
accent
#E443CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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