#2C1E97#2C1E97

#2C1E97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.183 H 276.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2C1E97
RGBrgb(44, 30, 151)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 80%, 59%)
CMYKcmyk(70.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.65, 43.87, -62.95)
CIE-LCHlch(22.65, 76.73, 304.87°)
OKLaboklab(35.25% 0.0211 -0.1819)
OKLCHoklch(35.25% 0.183 276.6)
XYZxyz(7.0871, 3.6977, 29.6124)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E97 #89971E
analogous
#1E4C97 #2C1E97 #681E97
triadic
#2C1E97 #972C1E #1E972C
tetradic
#2C1E97 #971E4C #89971E #1E9768
square
#2C1E97 #971E4C #89971E #1E9768
split-complementary
#2C1E97 #97681E #4C971E
monochromatic
#0E0A31 #1D1464 #2C1E97 #3B28CA #6353DD

Accessibility & contrast

On white

12.07
#2C1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E97
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E97#FFFFFF#000000##FFFFFF
##2C1E971.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1e97;
/* rgb */ color: rgb(44, 30, 151);
/* oklch */ color: oklch(35.3% 0.183 276.6);
Tailwind
colors: {
  custom: {
    50: '#765db7',
    500: '#2c1e97',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e97;
$custom-light: #765db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e97",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 246.942,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35254,
    "c": 0.18315,
    "h": 276.6
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#2C1E97
secondary
#B3C051
accent
#EA3ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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