#2C1E8D#2C1E8D

#2C1E8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.171 H 278.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2C1E8D
RGBrgb(44, 30, 141)
HSLhsl(248, 65%, 34%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(68.8%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.53, 40.68, -58.60)
CIE-LCHlch(21.53, 71.33, 304.77°)
OKLaboklab(34.14% 0.0237 -0.1693)
OKLCHoklch(34.14% 0.171 278)
XYZxyz(6.3091, 3.3866, 25.5153)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E8D #7F8D1E
analogous
#1E478D #2C1E8D #631E8D
triadic
#2C1E8D #8D2C1E #1E8D2C
tetradic
#2C1E8D #8D1E47 #7F8D1E #1E8D63
square
#2C1E8D #8D1E47 #7F8D1E #1E8D63
split-complementary
#2C1E8D #8D631E #478D1E
monochromatic
#0D0928 #1C135B #2C1E8D #3C29BF #5E4CD9

Accessibility & contrast

On white

12.52
#2C1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E8D
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E8D#FFFFFF#000000##FFFFFF
##2C1E8D1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1e8d;
/* rgb */ color: rgb(44, 30, 141);
/* oklch */ color: oklch(34.1% 0.171 278.0);
Tailwind
colors: {
  custom: {
    50: '#745db0',
    500: '#2c1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e8d;
$custom-light: #745db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e8d",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 247.568,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34144,
    "c": 0.17093,
    "h": 278
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#2C1E8D
secondary
#ADBC4B
accent
#E840D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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