#2C145F#2C145F

#2C145F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.123 H 290.8°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2C145F
RGBrgb(44, 20, 95)
HSLhsl(259, 65%, 23%)
HSVhsv(259, 79%, 37%)
CMYKcmyk(53.7%, 78.9%, 0%, 62.7%)
CIE-LABlab(14.75, 31.47, -40.16)
CIE-LCHlch(14.75, 51.02, 308.09°)
OKLaboklab(27.91% 0.0437 -0.1153)
OKLCHoklch(27.91% 0.123 290.8)
XYZxyz(3.3538, 1.8619, 11.0069)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145F #475F14
analogous
#14225F #2C145F #51145F
triadic
#2C145F #5F2C14 #145F2C
tetradic
#2C145F #5F1422 #475F14 #145F51
square
#2C145F #5F1422 #475F14 #145F51
split-complementary
#2C145F #5F5114 #225F14
monochromatic
#0C0519 #15092C #2C145F #431F92 #5B29C4

Accessibility & contrast

On white

15.30
#2C145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C145F
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145F#FFFFFF#000000##FFFFFF
##2C145F1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1A2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c145f;
/* rgb */ color: rgb(44, 20, 95);
/* oklch */ color: oklch(27.9% 0.123 290.8);
Tailwind
colors: {
  custom: {
    50: '#6b548d',
    500: '#2c145f',
    950: '#000000',
  },
}
SCSS
$custom: #2c145f;
$custom-light: #6b548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145f",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 259.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2791,
    "c": 0.12333,
    "h": 290.8
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#2C145F
secondary
#789738
accent
#E840B2
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C145F

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

Preview Lab → · Contrast checker → · Palette generator →

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