#2C1D97#2C1D97

#2C1D97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.184 H 276.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2C1D97
RGBrgb(44, 29, 151)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 59%)
CMYKcmyk(70.9%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.47, 44.38, -63.24)
CIE-LCHlch(22.47, 77.25, 305.06°)
OKLaboklab(35.13% 0.0215 -0.1828)
OKLCHoklch(35.13% 0.184 276.7)
XYZxyz(7.0622, 3.6479, 29.6041)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D97 #88971D
analogous
#1D4B97 #2C1D97 #691D97
triadic
#2C1D97 #972C1D #1D972C
tetradic
#2C1D97 #971D4B #88971D #1D9769
square
#2C1D97 #971D4B #88971D #1D9769
split-complementary
#2C1D97 #97691D #4B971D
monochromatic
#0E0930 #1D1364 #2C1D97 #3B27CA #6251DE

Accessibility & contrast

On white

12.14
#2C1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D97
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D97#FFFFFF#000000##FFFFFF
##2C1D971.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1d97;
/* rgb */ color: rgb(44, 29, 151);
/* oklch */ color: oklch(35.1% 0.184 276.7);
Tailwind
colors: {
  custom: {
    50: '#765db7',
    500: '#2c1d97',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d97;
$custom-light: #765db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d97",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 247.377,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35132,
    "c": 0.18402,
    "h": 276.7
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#2C1D97
secondary
#B3C04F
accent
#EB3DD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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