#2C146E#2C146E

#2C146E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.142 H 286.0°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2C146E
RGBrgb(44, 20, 110)
HSLhsl(256, 69%, 25%)
HSVhsv(256, 82%, 43%)
CMYKcmyk(60%, 81.8%, 0%, 56.9%)
CIE-LABlab(16.31, 36.12, -47.47)
CIE-LCHlch(16.31, 59.65, 307.26°)
OKLaboklab(29.48% 0.0392 -0.1367)
OKLCHoklch(29.48% 0.142 286)
XYZxyz(4.1025, 2.1613, 14.9498)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C146E #566E14
analogous
#14296E #2C146E #59146E
triadic
#2C146E #6E2C14 #146E2C
tetradic
#2C146E #6E1429 #566E14 #146E59
square
#2C146E #6E1429 #566E14 #146E59
split-complementary
#2C146E #6E5914 #296E14
monochromatic
#0A051A #170B3A #2C146E #411DA2 #5527D6

Accessibility & contrast

On white

14.66
#2C146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C146E
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C146E#FFFFFF#000000##FFFFFF
##2C146E1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#0B2E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c146e;
/* rgb */ color: rgb(44, 20, 110);
/* oklch */ color: oklch(29.5% 0.142 286.0);
Tailwind
colors: {
  custom: {
    50: '#6e5599',
    500: '#2c146e',
    950: '#000000',
  },
}
SCSS
$custom: #2c146e;
$custom-light: #6e5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2c146e",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 256,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29483,
    "c": 0.14222,
    "h": 286
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#2C146E
secondary
#88A539
accent
#EC3CBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C146E

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

Preview Lab → · Contrast checker → · Palette generator →

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