#2C145A#2C145A

#2C145A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.117 H 292.7°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2C145A
RGBrgb(44, 20, 90)
HSLhsl(261, 64%, 22%)
HSVhsv(261, 78%, 35%)
CMYKcmyk(51.1%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.25, 29.93, -37.62)
CIE-LCHlch(14.25, 48.07, 308.51°)
OKLaboklab(27.41% 0.045 -0.1079)
OKLCHoklch(27.41% 0.117 292.7)
XYZxyz(3.1338, 1.7739, 9.8481)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145A #425A14
analogous
#141F5A #2C145A #4F145A
triadic
#2C145A #5A2C14 #145A2C
tetradic
#2C145A #5A141F #425A14 #145A4F
square
#2C145A #5A141F #425A14 #145A4F
split-complementary
#2C145A #5A4F14 #1F5A14
monochromatic
#0C0619 #140928 #2C145A #441F8C #5D2ABE

Accessibility & contrast

On white

15.50
#2C145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C145A
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145A#FFFFFF#000000##FFFFFF
##2C145A1.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#1E2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c145a;
/* rgb */ color: rgb(44, 20, 90);
/* oklch */ color: oklch(27.4% 0.117 292.7);
Tailwind
colors: {
  custom: {
    50: '#6b5489',
    500: '#2c145a',
    950: '#000000',
  },
}
SCSS
$custom: #2c145a;
$custom-light: #6b5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145a",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 260.571,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27411,
    "c": 0.11688,
    "h": 292.7
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#2C145A
secondary
#739238
accent
#E741AE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C145A

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

Preview Lab → · Contrast checker → · Palette generator →

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