#2C186D#2C186D

#2C186D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.137 H 285.4°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2C186D
RGBrgb(44, 24, 109)
HSLhsl(254, 64%, 26%)
HSVhsv(254, 78%, 43%)
CMYKcmyk(59.6%, 78%, 0%, 57.3%)
CIE-LABlab(16.95, 33.67, -45.76)
CIE-LCHlch(16.95, 56.81, 306.34°)
OKLaboklab(29.9% 0.0364 -0.1317)
OKLCHoklch(29.9% 0.137 285.4)
XYZxyz(4.1248, 2.2926, 14.6902)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C186D #596D18
analogous
#182E6D #2C186D #56186D
triadic
#2C186D #6D2C18 #186D2C
tetradic
#2C186D #6D182E #596D18 #186D56
square
#2C186D #6D182E #596D18 #186D56
split-complementary
#2C186D #6D5618 #2E6D18
monochromatic
#0A0619 #180D3B #2C186D #40239F #552ED1

Accessibility & contrast

On white

14.40
#2C186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2C186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C186D
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C186D#FFFFFF#000000##FFFFFF
##2C186D1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#0C3041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c186d;
/* rgb */ color: rgb(44, 24, 109);
/* oklch */ color: oklch(29.9% 0.137 285.4);
Tailwind
colors: {
  custom: {
    50: '#6e5798',
    500: '#2c186d',
    950: '#000000',
  },
}
SCSS
$custom: #2c186d;
$custom-light: #6e5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2c186d",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 254.118,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29901,
    "c": 0.13668,
    "h": 285.4
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#2C186D
secondary
#8BA33E
accent
#E741C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C186D

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

Preview Lab → · Contrast checker → · Palette generator →

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