#2C117E#2C117E

#2C117E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.164 H 282.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2C117E
RGBrgb(44, 17, 126)
HSLhsl(255, 76%, 28%)
HSVhsv(255, 87%, 49%)
CMYKcmyk(65.1%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.66, 42.33, -55.55)
CIE-LCHlch(17.66, 69.84, 307.30°)
OKLaboklab(30.95% 0.0353 -0.1602)
OKLCHoklch(30.95% 0.164 282.4)
XYZxyz(5.0039, 2.4424, 19.9424)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C117E #637E11
analogous
#112D7E #2C117E #62117E
triadic
#2C117E #7E2C11 #117E2C
tetradic
#2C117E #7E112D #637E11 #117E62
square
#2C117E #7E112D #637E11 #117E62
split-complementary
#2C117E #7E6211 #2D7E11
monochromatic
#09041B #190A48 #2C117E #3F18B4 #5627E2

Accessibility & contrast

On white

14.11
#2C117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C117E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C117E#FFFFFF#000000##FFFFFF
##2C117E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c117e;
/* rgb */ color: rgb(44, 17, 126);
/* oklch */ color: oklch(31.0% 0.164 282.4);
Tailwind
colors: {
  custom: {
    50: '#7255a5',
    500: '#2c117e',
    950: '#000000',
  },
}
SCSS
$custom: #2c117e;
$custom-light: #7255a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c117e",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 254.862,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30952,
    "c": 0.16409,
    "h": 282.4
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#2C117E
secondary
#95B437
accent
#F335C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C117E

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

Preview Lab → · Contrast checker → · Palette generator →

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