#2C145E#2C145E

#2C145E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.122 H 291.1°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2C145E
RGBrgb(44, 20, 94)
HSLhsl(259, 65%, 22%)
HSVhsv(259, 79%, 37%)
CMYKcmyk(53.2%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.65, 31.17, -39.66)
CIE-LCHlch(14.65, 50.44, 308.17°)
OKLaboklab(27.81% 0.044 -0.1138)
OKLCHoklch(27.81% 0.122 291.1)
XYZxyz(3.3087, 1.8438, 10.7691)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C145E #465E14
analogous
#14215E #2C145E #51145E
triadic
#2C145E #5E2C14 #145E2C
tetradic
#2C145E #5E1421 #465E14 #145E51
square
#2C145E #5E1421 #465E14 #145E51
split-complementary
#2C145E #5E5114 #215E14
monochromatic
#0C0519 #14092C #2C145E #441F90 #5B29C3

Accessibility & contrast

On white

15.34
#2C145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C145E
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C145E#FFFFFF#000000##FFFFFF
##2C145E1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1B2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c145e;
/* rgb */ color: rgb(44, 20, 94);
/* oklch */ color: oklch(27.8% 0.122 291.1);
Tailwind
colors: {
  custom: {
    50: '#6b548c',
    500: '#2c145e',
    950: '#000000',
  },
}
SCSS
$custom: #2c145e;
$custom-light: #6b548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c145e",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 259.459,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27809,
    "c": 0.12204,
    "h": 291.1
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C145E

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

Preview Lab → · Contrast checker → · Palette generator →

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