#2C186E#2C186E

#2C186E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.138 H 285.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2C186E
RGBrgb(44, 24, 110)
HSLhsl(254, 64%, 26%)
HSVhsv(254, 78%, 43%)
CMYKcmyk(60%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.06, 33.99, -46.24)
CIE-LCHlch(17.06, 57.39, 306.31°)
OKLaboklab(30.01% 0.0361 -0.1332)
OKLCHoklch(30.01% 0.138 285.2)
XYZxyz(4.1790, 2.3143, 14.9753)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C186E #5A6E18
analogous
#182F6E #2C186E #57186E
triadic
#2C186E #6E2C18 #186E2C
tetradic
#2C186E #6E182F #5A6E18 #186E57
square
#2C186E #6E182F #5A6E18 #186E57
split-complementary
#2C186E #6E5718 #2F6E18
monochromatic
#0A0519 #180D3C #2C186E #4023A0 #552FD2

Accessibility & contrast

On white

14.35
#2C186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C186E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C186E#FFFFFF#000000##FFFFFF
##2C186E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#0A3042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c186e;
/* rgb */ color: rgb(44, 24, 110);
/* oklch */ color: oklch(30.0% 0.138 285.2);
Tailwind
colors: {
  custom: {
    50: '#6e5798',
    500: '#2c186e',
    950: '#000000',
  },
}
SCSS
$custom: #2c186e;
$custom-light: #6e5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2c186e",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 253.953,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30005,
    "c": 0.13797,
    "h": 285.2
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C186E

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

Preview Lab → · Contrast checker → · Palette generator →

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