#2C145D#2C145D

#2C145D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.121 H 291.5°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2C145D
RGBrgb(44, 20, 93)
HSLhsl(260, 65%, 22%)
HSVhsv(260, 78%, 36%)
CMYKcmyk(52.7%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.55, 30.86, -39.15)
CIE-LCHlch(14.55, 49.85, 308.25°)
OKLaboklab(27.71% 0.0443 -0.1123)
OKLCHoklch(27.71% 0.121 291.5)
XYZxyz(3.2641, 1.8260, 10.5343)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145D #455D14
analogous
#14215D #2C145D #51145D
triadic
#2C145D #5D2C14 #145D2C
tetradic
#2C145D #5D1421 #455D14 #145D51
square
#2C145D #5D1421 #455D14 #145D51
split-complementary
#2C145D #5D5114 #215D14
monochromatic
#0C0519 #14092B #2C145D #441F8F #5C2AC2

Accessibility & contrast

On white

15.38
#2C145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C145D
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145D#FFFFFF#000000##FFFFFF
##2C145D1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#1C2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c145d;
/* rgb */ color: rgb(44, 20, 93);
/* oklch */ color: oklch(27.7% 0.121 291.5);
Tailwind
colors: {
  custom: {
    50: '#6b548c',
    500: '#2c145d',
    950: '#000000',
  },
}
SCSS
$custom: #2c145d;
$custom-light: #6b548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145d",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 259.726,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27708,
    "c": 0.12075,
    "h": 291.5
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2C145D
secondary
#769538
accent
#E840B1
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C145D

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

Preview Lab → · Contrast checker → · Palette generator →

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