#2C1D94#2C1D94

#2C1D94 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.180 H 277.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1D94
RGBrgb(44, 29, 148)
HSLhsl(248, 67%, 35%)
HSVhsv(248, 80%, 58%)
CMYKcmyk(70.3%, 80.4%, 0%, 42%)
CIE-LABlab(22.13, 43.43, -61.95)
CIE-LCHlch(22.13, 75.66, 305.03°)
OKLaboklab(34.79% 0.0223 -0.179)
OKLCHoklch(34.79% 0.18 277.1)
XYZxyz(6.8216, 3.5517, 28.3373)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D94 #85941D
analogous
#1D4A94 #2C1D94 #681D94
triadic
#2C1D94 #942C1D #1D942C
tetradic
#2C1D94 #941D4A #85941D #1D9468
square
#2C1D94 #941D4A #85941D #1D9468
split-complementary
#2C1D94 #94681D #4A941D
monochromatic
#0E092E #1D1361 #2C1D94 #3B27C7 #614FDC

Accessibility & contrast

On white

12.28
#2C1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D94
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D94#FFFFFF#000000##FFFFFF
##2C1D941.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1d94;
/* rgb */ color: rgb(44, 29, 148);
/* oklch */ color: oklch(34.8% 0.180 277.1);
Tailwind
colors: {
  custom: {
    50: '#765cb5',
    500: '#2c1d94',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d94;
$custom-light: #765cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d94",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 247.563,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.18041,
    "h": 277.1
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#2C1D94
secondary
#B1BF4E
accent
#EA3ED4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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