#2C146B#2C146B

#2C146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.138 H 286.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2C146B
RGBrgb(44, 20, 107)
HSLhsl(257, 69%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(58.9%, 81.3%, 0%, 58%)
CIE-LABlab(15.99, 35.19, -46.04)
CIE-LCHlch(15.99, 57.95, 307.39°)
OKLaboklab(29.16% 0.0402 -0.1325)
OKLCHoklch(29.16% 0.138 286.9)
XYZxyz(3.9419, 2.0971, 14.1041)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C146B #536B14
analogous
#14276B #2C146B #58146B
triadic
#2C146B #6B2C14 #146B2C
tetradic
#2C146B #6B1427 #536B14 #146B58
square
#2C146B #6B1427 #536B14 #146B58
split-complementary
#2C146B #6B5814 #276B14
monochromatic
#0B051A #170A37 #2C146B #411E9F #5627D2

Accessibility & contrast

On white

14.79
#2C146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C146B
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C146B#FFFFFF#000000##FFFFFF
##2C146B1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0F2D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c146b;
/* rgb */ color: rgb(44, 20, 107);
/* oklch */ color: oklch(29.2% 0.138 286.9);
Tailwind
colors: {
  custom: {
    50: '#6e5596',
    500: '#2c146b',
    950: '#000000',
  },
}
SCSS
$custom: #2c146b;
$custom-light: #6e5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2c146b",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 256.552,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2916,
    "c": 0.13849,
    "h": 286.9
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#2C146B
secondary
#85A239
accent
#EB3CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C146B

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

Preview Lab → · Contrast checker → · Palette generator →

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