#2C1988#2C1988

#2C1988 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.169 H 279.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2C1988
RGBrgb(44, 25, 136)
HSLhsl(250, 69%, 32%)
HSVhsv(250, 82%, 53%)
CMYKcmyk(67.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.08, 41.68, -57.87)
CIE-LCHlch(20.08, 71.32, 305.76°)
OKLaboklab(32.96% 0.0279 -0.1671)
OKLCHoklch(32.96% 0.169 279.5)
XYZxyz(5.8289, 3.0078, 23.5612)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1988 #758819
analogous
#193E88 #2C1988 #641988
triadic
#2C1988 #882C19 #19882C
tetradic
#2C1988 #88193E #758819 #198864
square
#2C1988 #88193E #758819 #198864
split-complementary
#2C1988 #886419 #3E8819
monochromatic
#0B0621 #1B0F54 #2C1988 #3D23BC #5A40DC

Accessibility & contrast

On white

13.11
#2C1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1988
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1988#FFFFFF#000000##FFFFFF
##2C19881.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1988;
/* rgb */ color: rgb(44, 25, 136);
/* oklch */ color: oklch(33.0% 0.169 279.5);
Tailwind
colors: {
  custom: {
    50: '#735aac',
    500: '#2c1988',
    950: '#000000',
  },
}
SCSS
$custom: #2c1988;
$custom-light: #735aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1988",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 250.27,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.16941,
    "h": 279.5
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#2C1988
secondary
#A7BB41
accent
#EC3CCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1988

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

Preview Lab → · Contrast checker → · Palette generator →

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