#2C145B#2C145B

#2C145B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.118 H 292.3°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2C145B
RGBrgb(44, 20, 91)
HSLhsl(260, 64%, 22%)
HSVhsv(260, 78%, 36%)
CMYKcmyk(51.6%, 78%, 0%, 64.3%)
CIE-LABlab(14.35, 30.24, -38.13)
CIE-LCHlch(14.35, 48.67, 308.42°)
OKLaboklab(27.51% 0.0448 -0.1094)
OKLCHoklch(27.51% 0.118 292.3)
XYZxyz(3.1767, 1.7910, 10.0738)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145B #435B14
analogous
#14205B #2C145B #50145B
triadic
#2C145B #5B2C14 #145B2C
tetradic
#2C145B #5B1420 #435B14 #145B50
square
#2C145B #5B1420 #435B14 #145B50
split-complementary
#2C145B #5B5014 #205B14
monochromatic
#0C0619 #140929 #2C145B #441F8D #5D2ABF

Accessibility & contrast

On white

15.46
#2C145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C145B
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145B#FFFFFF#000000##FFFFFF
##2C145B1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1D2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c145b;
/* rgb */ color: rgb(44, 20, 91);
/* oklch */ color: oklch(27.5% 0.118 292.3);
Tailwind
colors: {
  custom: {
    50: '#6b548a',
    500: '#2c145b',
    950: '#000000',
  },
}
SCSS
$custom: #2c145b;
$custom-light: #6b548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145b",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 260.282,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27509,
    "c": 0.11817,
    "h": 292.3
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#2C145B
secondary
#749338
accent
#E741AF
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C145B

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

Preview Lab → · Contrast checker → · Palette generator →

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