#2C145C#2C145C

#2C145C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.119 H 291.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2C145C
RGBrgb(44, 20, 92)
HSLhsl(260, 64%, 22%)
HSVhsv(260, 78%, 36%)
CMYKcmyk(52.2%, 78.3%, 0%, 63.9%)
CIE-LABlab(14.45, 30.55, -38.64)
CIE-LCHlch(14.45, 49.26, 308.33°)
OKLaboklab(27.61% 0.0445 -0.1109)
OKLCHoklch(27.61% 0.119 291.9)
XYZxyz(3.2201, 1.8084, 10.3025)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145C #445C14
analogous
#14205C #2C145C #50145C
triadic
#2C145C #5C2C14 #145C2C
tetradic
#2C145C #5C1420 #445C14 #145C50
square
#2C145C #5C1420 #445C14 #145C50
split-complementary
#2C145C #5C5014 #205C14
monochromatic
#0C0519 #14092A #2C145C #441F8E #5C2AC1

Accessibility & contrast

On white

15.42
#2C145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C145C
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145C#FFFFFF#000000##FFFFFF
##2C145C1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1D2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c145c;
/* rgb */ color: rgb(44, 20, 92);
/* oklch */ color: oklch(27.6% 0.119 291.9);
Tailwind
colors: {
  custom: {
    50: '#6b548b',
    500: '#2c145c',
    950: '#000000',
  },
}
SCSS
$custom: #2c145c;
$custom-light: #6b548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145c",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 260,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27609,
    "c": 0.11947,
    "h": 291.9
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#2C145C
secondary
#759438
accent
#E741B0
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C145C

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

Preview Lab → · Contrast checker → · Palette generator →

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