#2C1E91#2C1E91

#2C1E91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.176 H 277.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2C1E91
RGBrgb(44, 30, 145)
HSLhsl(247, 66%, 34%)
HSVhsv(247, 79%, 57%)
CMYKcmyk(69.7%, 79.3%, 0%, 43.1%)
CIE-LABlab(21.97, 41.96, -60.35)
CIE-LCHlch(21.97, 73.51, 304.81°)
OKLaboklab(34.59% 0.0227 -0.1744)
OKLCHoklch(34.59% 0.176 277.4)
XYZxyz(6.6122, 3.5078, 27.1112)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E91 #83911E
analogous
#1E4A91 #2C1E91 #661E91
triadic
#2C1E91 #912C1E #1E912C
tetradic
#2C1E91 #911E4A #83911E #1E9166
square
#2C1E91 #911E4A #83911E #1E9166
split-complementary
#2C1E91 #91661E #4A911E
monochromatic
#0D092C #1D145E #2C1E91 #3B28C4 #604FDB

Accessibility & contrast

On white

12.34
#2C1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E91
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E91#FFFFFF#000000##FFFFFF
##2C1E911.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1e91;
/* rgb */ color: rgb(44, 30, 145);
/* oklch */ color: oklch(34.6% 0.176 277.4);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2c1e91',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e91;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e91",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 247.304,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.17586,
    "h": 277.4
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#2C1E91
secondary
#B0BD4D
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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