#2C188D#2C188D

#2C188D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.176 H 278.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2C188D
RGBrgb(44, 24, 141)
HSLhsl(250, 71%, 32%)
HSVhsv(250, 83%, 55%)
CMYKcmyk(68.8%, 83%, 0%, 44.7%)
CIE-LABlab(20.48, 43.71, -60.33)
CIE-LCHlch(20.48, 74.49, 305.92°)
OKLaboklab(33.42% 0.0268 -0.1742)
OKLCHoklch(33.42% 0.176 278.7)
XYZxyz(6.1715, 3.1113, 25.4694)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C188D #798D18
analogous
#183F8D #2C188D #66188D
triadic
#2C188D #8D2C18 #188D2C
tetradic
#2C188D #8D183F #798D18 #188D66
square
#2C188D #8D183F #798D18 #188D66
split-complementary
#2C188D #8D6618 #3F8D18
monochromatic
#0B0624 #1C0F59 #2C188D #3C21C1 #5C41DF

Accessibility & contrast

On white

12.94
#2C188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C188D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C188D#FFFFFF#000000##FFFFFF
##2C188D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c188d;
/* rgb */ color: rgb(44, 24, 141);
/* oklch */ color: oklch(33.4% 0.176 278.7);
Tailwind
colors: {
  custom: {
    50: '#7559b0',
    500: '#2c188d',
    950: '#000000',
  },
}
SCSS
$custom: #2c188d;
$custom-light: #7559b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c188d",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 250.256,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33416,
    "c": 0.17628,
    "h": 278.7
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#2C188D
secondary
#AABF42
accent
#EE3ACF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C188D

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

Preview Lab → · Contrast checker → · Palette generator →

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