#2C1A93#2C1A93

#2C1A93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.182 H 277.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2C1A93
RGBrgb(44, 26, 147)
HSLhsl(249, 70%, 34%)
HSVhsv(249, 82%, 58%)
CMYKcmyk(70.1%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.51, 44.60, -62.36)
CIE-LCHlch(21.51, 76.67, 305.57°)
OKLaboklab(34.33% 0.024 -0.1802)
OKLCHoklch(34.33% 0.182 277.6)
XYZxyz(6.6729, 3.3803, 27.8989)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A93 #81931A
analogous
#1A4593 #2C1A93 #691A93
triadic
#2C1A93 #932C1A #1A932C
tetradic
#2C1A93 #931A45 #81931A #1A9369
square
#2C1A93 #931A45 #81931A #1A9369
split-complementary
#2C1A93 #93691A #45931A
monochromatic
#0D082B #1C115F #2C1A93 #3C23C7 #5F49DF

Accessibility & contrast

On white

12.53
#2C1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A93
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A93#FFFFFF#000000##FFFFFF
##2C1A931.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1a93;
/* rgb */ color: rgb(44, 26, 147);
/* oklch */ color: oklch(34.3% 0.182 277.6);
Tailwind
colors: {
  custom: {
    50: '#765bb4',
    500: '#2c1a93',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a93;
$custom-light: #765bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a93",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 248.926,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34327,
    "c": 0.18178,
    "h": 277.6
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#2C1A93
secondary
#AFC048
accent
#ED3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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