#2C187A#2C187A

#2C187A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.153 H 282.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2C187A
RGBrgb(44, 24, 122)
HSLhsl(252, 67%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(63.9%, 80.3%, 0%, 52.2%)
CIE-LABlab(18.34, 37.80, -51.88)
CIE-LCHlch(18.34, 64.19, 306.08°)
OKLaboklab(31.29% 0.0327 -0.1496)
OKLCHoklch(31.29% 0.153 282.3)
XYZxyz(4.8771, 2.5935, 18.6522)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C187A #667A18
analogous
#18357A #2C187A #5D187A
triadic
#2C187A #7A2C18 #187A2C
tetradic
#2C187A #7A1835 #667A18 #187A5D
square
#2C187A #7A1835 #667A18 #187A5D
split-complementary
#2C187A #7A5D18 #357A18
monochromatic
#09051A #1A0E47 #2C187A #3E22AD #5635D7

Accessibility & contrast

On white

13.83
#2C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C187A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C187A#FFFFFF#000000##FFFFFF
##2C187A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c187a;
/* rgb */ color: rgb(44, 24, 122);
/* oklch */ color: oklch(31.3% 0.153 282.3);
Tailwind
colors: {
  custom: {
    50: '#7058a1',
    500: '#2c187a',
    950: '#000000',
  },
}
SCSS
$custom: #2c187a;
$custom-light: #7058a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c187a",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 252.245,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.15315,
    "h": 282.3
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#2C187A
secondary
#98AF3F
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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