#2C185A#2C185A

#2C185A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 291.4°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2C185A
RGBrgb(44, 24, 90)
HSLhsl(258, 58%, 22%)
HSVhsv(258, 73%, 35%)
CMYKcmyk(51.1%, 73.3%, 0%, 64.7%)
CIE-LABlab(15.10, 27.58, -36.24)
CIE-LCHlch(15.10, 45.54, 307.28°)
OKLaboklab(28.01% 0.0407 -0.1038)
OKLCHoklch(28.01% 0.112 291.4)
XYZxyz(3.2103, 1.9268, 9.8736)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C185A #465A18
analogous
#18255A #2C185A #4D185A
triadic
#2C185A #5A2C18 #185A2C
tetradic
#2C185A #5A1825 #465A18 #185A4D
square
#2C185A #5A1825 #465A18 #185A4D
split-complementary
#2C185A #5A4D18 #255A18
monochromatic
#0C0618 #140B2A #2C185A #44258A #5B32BB

Accessibility & contrast

On white

15.16
#2C185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C185A
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C185A#FFFFFF#000000##FFFFFF
##2C185A1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1E2836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c185a;
/* rgb */ color: rgb(44, 24, 90);
/* oklch */ color: oklch(28.0% 0.112 291.4);
Tailwind
colors: {
  custom: {
    50: '#6a5689',
    500: '#2c185a',
    950: '#000000',
  },
}
SCSS
$custom: #2c185a;
$custom-light: #6a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2c185a",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 258.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28013,
    "c": 0.11153,
    "h": 291.4
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#2C185A
secondary
#77913D
accent
#E147B2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C185A

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

Preview Lab → · Contrast checker → · Palette generator →

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