#2C184C#2C184C

#2C184C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.092 H 297.5°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2C184C
RGBrgb(44, 24, 76)
HSLhsl(263, 52%, 20%)
HSVhsv(263, 68%, 30%)
CMYKcmyk(42.1%, 68.4%, 0%, 70.2%)
CIE-LABlab(13.89, 23.16, -28.69)
CIE-LCHlch(13.89, 36.87, 308.91°)
OKLaboklab(26.76% 0.0425 -0.0816)
OKLCHoklch(26.76% 0.092 297.5)
XYZxyz(2.6695, 1.7105, 7.0256)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C184C #384C18
analogous
#181E4C #2C184C #46184C
triadic
#2C184C #4C2C18 #184C2C
tetradic
#2C184C #4C181E #384C18 #184C46
square
#2C184C #4C181E #384C18 #184C46
split-complementary
#2C184C #4C4618 #1E4C18
monochromatic
#0D0717 #11091D #2C184C #47277B #6235A9

Accessibility & contrast

On white

15.65
#2C184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C184C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C184C
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C184C#FFFFFF#000000##FFFFFF
##2C184C1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#02234B
Tritanopia (blue-blind)
#24232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c184c;
/* rgb */ color: rgb(44, 24, 76);
/* oklch */ color: oklch(26.8% 0.092 297.5);
Tailwind
colors: {
  custom: {
    50: '#68567e',
    500: '#2c184c',
    950: '#000000',
  },
}
SCSS
$custom: #2c184c;
$custom-light: #68567e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c184c",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 263.077,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26759,
    "c": 0.09205,
    "h": 297.5
  },
  "luminance": 0.01711
}

Semantic roles & 50–950 ramp

primary
#2C184C
secondary
#68833D
accent
#DB4CA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C184C

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

Preview Lab → · Contrast checker → · Palette generator →

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