#2C187C#2C187C

#2C187C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.156 H 281.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2C187C
RGBrgb(44, 24, 124)
HSLhsl(252, 68%, 29%)
HSVhsv(252, 81%, 49%)
CMYKcmyk(64.5%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.56, 38.43, -52.79)
CIE-LCHlch(18.56, 65.30, 306.05°)
OKLaboklab(31.51% 0.0321 -0.1523)
OKLCHoklch(31.51% 0.156 281.9)
XYZxyz(5.0023, 2.6436, 19.3115)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C187C #687C18
analogous
#18367C #2C187C #5E187C
triadic
#2C187C #7C2C18 #187C2C
tetradic
#2C187C #7C1836 #687C18 #187C5E
square
#2C187C #7C1836 #687C18 #187C5E
split-complementary
#2C187C #7C5E18 #367C18
monochromatic
#09051A #1A0E49 #2C187C #3E22AF #5736D8

Accessibility & contrast

On white

13.74
#2C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C187C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C187C#FFFFFF#000000##FFFFFF
##2C187C1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c187c;
/* rgb */ color: rgb(44, 24, 124);
/* oklch */ color: oklch(31.5% 0.156 281.9);
Tailwind
colors: {
  custom: {
    50: '#7158a3',
    500: '#2c187c',
    950: '#000000',
  },
}
SCSS
$custom: #2c187c;
$custom-light: #7158a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c187c",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 252,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31507,
    "c": 0.15563,
    "h": 281.9
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#2C187C
secondary
#9AB13F
accent
#EA3DC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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