#2C1D89#2C1D89

#2C1D89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 278.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2C1D89
RGBrgb(44, 29, 137)
HSLhsl(248, 65%, 33%)
HSVhsv(248, 79%, 54%)
CMYKcmyk(67.9%, 78.8%, 0%, 46.3%)
CIE-LABlab(20.90, 39.93, -57.13)
CIE-LCHlch(20.90, 69.70, 304.95°)
OKLaboklab(33.57% 0.0253 -0.165)
OKLCHoklch(33.57% 0.167 278.7)
XYZxyz(5.9920, 3.2198, 23.9678)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D89 #7A891D
analogous
#1D4489 #2C1D89 #621D89
triadic
#2C1D89 #892C1D #1D892C
tetradic
#2C1D89 #891D44 #7A891D #1D8962
square
#2C1D89 #891D44 #7A891D #1D8962
split-complementary
#2C1D89 #89621D #44891D
monochromatic
#0C0824 #1C1256 #2C1D89 #3C28BC #5C48D8

Accessibility & contrast

On white

12.77
#2C1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D89
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D89#FFFFFF#000000##FFFFFF
##2C1D891.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1d89;
/* rgb */ color: rgb(44, 29, 137);
/* oklch */ color: oklch(33.6% 0.167 278.7);
Tailwind
colors: {
  custom: {
    50: '#735cad',
    500: '#2c1d89',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d89;
$custom-light: #735cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d89",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 248.333,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33574,
    "c": 0.16693,
    "h": 278.7
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#2C1D89
secondary
#AABA47
accent
#E840D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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