#2C186A#2C186A

#2C186A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 286.3°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2C186A
RGBrgb(44, 24, 106)
HSLhsl(255, 63%, 25%)
HSVhsv(255, 77%, 42%)
CMYKcmyk(58.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.65, 32.71, -44.31)
CIE-LCHlch(16.65, 55.07, 306.44°)
OKLaboklab(29.59% 0.0372 -0.1275)
OKLCHoklch(29.59% 0.133 286.3)
XYZxyz(3.9661, 2.2291, 13.8542)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C186A #566A18
analogous
#182D6A #2C186A #55186A
triadic
#2C186A #6A2C18 #186A2C
tetradic
#2C186A #6A182D #566A18 #186A55
square
#2C186A #6A182D #566A18 #186A55
split-complementary
#2C186A #6A5518 #2D6A18
monochromatic
#0A0619 #170D38 #2C186A #41239C #552FCE

Accessibility & contrast

On white

14.52
#2C186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C186A
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C186A#FFFFFF#000000##FFFFFF
##2C186A1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#102E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c186a;
/* rgb */ color: rgb(44, 24, 106);
/* oklch */ color: oklch(29.6% 0.133 286.3);
Tailwind
colors: {
  custom: {
    50: '#6d5795',
    500: '#2c186a',
    950: '#000000',
  },
}
SCSS
$custom: #2c186a;
$custom-light: #6d5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2c186a",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 254.634,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29591,
    "c": 0.13281,
    "h": 286.3
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#2C186A
secondary
#88A03E
accent
#E642BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C186A

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

Preview Lab → · Contrast checker → · Palette generator →

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