#2C1E86#2C1E86

#2C1E86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 279.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2C1E86
RGBrgb(44, 30, 134)
HSLhsl(248, 63%, 32%)
HSVhsv(248, 78%, 53%)
CMYKcmyk(67.2%, 77.6%, 0%, 47.5%)
CIE-LABlab(20.77, 38.41, -55.47)
CIE-LCHlch(20.77, 67.47, 304.70°)
OKLaboklab(33.38% 0.0255 -0.1602)
OKLCHoklch(33.38% 0.162 279)
XYZxyz(5.8047, 3.1848, 22.8585)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E86 #78861E
analogous
#1E4486 #2C1E86 #601E86
triadic
#2C1E86 #862C1E #1E862C
tetradic
#2C1E86 #861E44 #78861E #1E8660
square
#2C1E86 #861E44 #78861E #1E8660
split-complementary
#2C1E86 #86601E #44861E
monochromatic
#0B0822 #1C1354 #2C1E86 #3C29B8 #5B48D6

Accessibility & contrast

On white

12.83
#2C1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C1E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E86
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E86#FFFFFF#000000##FFFFFF
##2C1E861.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1e86;
/* rgb */ color: rgb(44, 30, 134);
/* oklch */ color: oklch(33.4% 0.162 279.0);
Tailwind
colors: {
  custom: {
    50: '#725caa',
    500: '#2c1e86',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e86;
$custom-light: #725caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e86",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 248.077,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.16219,
    "h": 279
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#2C1E86
secondary
#A9B847
accent
#E641D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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