#2C186F#2C186F

#2C186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.139 H 284.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2C186F
RGBrgb(44, 24, 111)
HSLhsl(254, 64%, 26%)
HSVhsv(254, 78%, 44%)
CMYKcmyk(60.4%, 78.4%, 0%, 56.5%)
CIE-LABlab(17.16, 34.31, -46.72)
CIE-LCHlch(17.16, 57.96, 306.29°)
OKLaboklab(30.11% 0.0359 -0.1346)
OKLCHoklch(30.11% 0.139 284.9)
XYZxyz(4.2337, 2.3362, 15.2637)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C186F #5B6F18
analogous
#18306F #2C186F #58186F
triadic
#2C186F #6F2C18 #186F2C
tetradic
#2C186F #6F1830 #5B6F18 #186F58
square
#2C186F #6F1830 #5B6F18 #186F58
split-complementary
#2C186F #6F5818 #306F18
monochromatic
#0A0519 #180D3D #2C186F #4023A1 #552FD2

Accessibility & contrast

On white

14.31
#2C186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C186F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C186F#FFFFFF#000000##FFFFFF
##2C186F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#083042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c186f;
/* rgb */ color: rgb(44, 24, 111);
/* oklch */ color: oklch(30.1% 0.139 284.9);
Tailwind
colors: {
  custom: {
    50: '#6e5799',
    500: '#2c186f',
    950: '#000000',
  },
}
SCSS
$custom: #2c186f;
$custom-light: #6e5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2c186f",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 253.793,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3011,
    "c": 0.13925,
    "h": 284.9
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#2C186F
secondary
#8DA53E
accent
#E740C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C186F

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

Preview Lab → · Contrast checker → · Palette generator →

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