#2C186B#2C186B

#2C186B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.134 H 286.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2C186B
RGBrgb(44, 24, 107)
HSLhsl(254, 63%, 26%)
HSVhsv(254, 78%, 42%)
CMYKcmyk(58.9%, 77.6%, 0%, 58%)
CIE-LABlab(16.75, 33.03, -44.79)
CIE-LCHlch(16.75, 55.65, 306.40°)
OKLaboklab(29.69% 0.0369 -0.1289)
OKLCHoklch(29.69% 0.134 286)
XYZxyz(4.0184, 2.2500, 14.1296)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C186B #576B18
analogous
#182D6B #2C186B #55186B
triadic
#2C186B #6B2C18 #186B2C
tetradic
#2C186B #6B182D #576B18 #186B55
square
#2C186B #6B182D #576B18 #186B55
split-complementary
#2C186B #6B5518 #2D6B18
monochromatic
#0A0619 #170D39 #2C186B #41239D #552ECF

Accessibility & contrast

On white

14.48
#2C186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C186B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C186B#FFFFFF#000000##FFFFFF
##2C186B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#0F2F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c186b;
/* rgb */ color: rgb(44, 24, 107);
/* oklch */ color: oklch(29.7% 0.134 286.0);
Tailwind
colors: {
  custom: {
    50: '#6d5796',
    500: '#2c186b',
    950: '#000000',
  },
}
SCSS
$custom: #2c186b;
$custom-light: #6d5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2c186b",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 254.458,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29694,
    "c": 0.1341,
    "h": 286
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#2C186B
secondary
#89A13E
accent
#E641BF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C186B

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

Preview Lab → · Contrast checker → · Palette generator →

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