#2C126A#2C126A

#2C126A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.139 H 287.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2C126A
RGBrgb(44, 18, 106)
HSLhsl(258, 71%, 24%)
HSVhsv(258, 83%, 42%)
CMYKcmyk(58.5%, 83%, 0%, 58.4%)
CIE-LABlab(15.53, 35.89, -46.14)
CIE-LCHlch(15.53, 58.45, 307.88°)
OKLaboklab(28.81% 0.042 -0.1328)
OKLCHoklch(28.81% 0.139 287.5)
XYZxyz(3.8558, 2.0085, 13.8174)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C126A #506A12
analogous
#12246A #2C126A #58126A
triadic
#2C126A #6A2C12 #126A2C
tetradic
#2C126A #6A1224 #506A12 #126A58
square
#2C126A #6A1224 #506A12 #126A58
split-complementary
#2C126A #6A5812 #246A12
monochromatic
#0B041A #160936 #2C126A #421B9E #5724D3

Accessibility & contrast

On white

14.98
#2C126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2C126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C126A
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C126A#FFFFFF#000000##FFFFFF
##2C126A1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#112C3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2c126a;
/* rgb */ color: rgb(44, 18, 106);
/* oklch */ color: oklch(28.8% 0.139 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5496',
    500: '#2c126a',
    950: '#000000',
  },
}
SCSS
$custom: #2c126a;
$custom-light: #6e5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2c126a",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 257.727,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28809,
    "c": 0.13928,
    "h": 287.5
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#2C126A
secondary
#82A236
accent
#EE3AB9
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C126A

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

Preview Lab → · Contrast checker → · Palette generator →

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