#2C187B#2C187B

#2C187B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.154 H 282.1°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2C187B
RGBrgb(44, 24, 123)
HSLhsl(252, 67%, 29%)
HSVhsv(252, 80%, 48%)
CMYKcmyk(64.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.45, 38.11, -52.33)
CIE-LCHlch(18.45, 64.74, 306.07°)
OKLaboklab(31.4% 0.0324 -0.151)
OKLCHoklch(31.4% 0.154 282.1)
XYZxyz(4.9394, 2.6184, 18.9802)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C187B #677B18
analogous
#18367B #2C187B #5E187B
triadic
#2C187B #7B2C18 #187B2C
tetradic
#2C187B #7B1836 #677B18 #187B5E
square
#2C187B #7B1836 #677B18 #187B5E
split-complementary
#2C187B #7B5E18 #367B18
monochromatic
#09051A #1A0E48 #2C187B #3E22AE #5636D8

Accessibility & contrast

On white

13.78
#2C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C187B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C187B#FFFFFF#000000##FFFFFF
##2C187B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c187b;
/* rgb */ color: rgb(44, 24, 123);
/* oklch */ color: oklch(31.4% 0.154 282.1);
Tailwind
colors: {
  custom: {
    50: '#7158a2',
    500: '#2c187b',
    950: '#000000',
  },
}
SCSS
$custom: #2c187b;
$custom-light: #7158a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c187b",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 252.121,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31397,
    "c": 0.15439,
    "h": 282.1
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#2C187B
secondary
#99B03F
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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