#2C187E#2C187E

#2C187E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 281.5°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2C187E
RGBrgb(44, 24, 126)
HSLhsl(252, 68%, 29%)
HSVhsv(252, 81%, 49%)
CMYKcmyk(65.1%, 81%, 0%, 50.6%)
CIE-LABlab(18.78, 39.06, -53.70)
CIE-LCHlch(18.78, 66.40, 306.03°)
OKLaboklab(31.73% 0.0315 -0.1549)
OKLCHoklch(31.73% 0.158 281.5)
XYZxyz(5.1301, 2.6947, 19.9844)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C187E #6A7E18
analogous
#18377E #2C187E #5F187E
triadic
#2C187E #7E2C18 #187E2C
tetradic
#2C187E #7E1837 #6A7E18 #187E5F
square
#2C187E #7E1837 #6A7E18 #187E5F
split-complementary
#2C187E #7E5F18 #377E18
monochromatic
#09051A #1A0E4B #2C187E #3E22B1 #5737D9

Accessibility & contrast

On white

13.65
#2C187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C187E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C187E#FFFFFF#000000##FFFFFF
##2C187E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c187e;
/* rgb */ color: rgb(44, 24, 126);
/* oklch */ color: oklch(31.7% 0.158 281.5);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2c187e',
    950: '#000000',
  },
}
SCSS
$custom: #2c187e;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c187e",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 251.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31727,
    "c": 0.1581,
    "h": 281.5
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#2C187E
secondary
#9CB23F
accent
#EB3DC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C187E

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

Preview Lab → · Contrast checker → · Palette generator →

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