#2C117F#2C117F

#2C117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.165 H 282.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2C117F
RGBrgb(44, 17, 127)
HSLhsl(255, 76%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(65.4%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.77, 42.62, -55.99)
CIE-LCHlch(17.77, 70.37, 307.28°)
OKLaboklab(31.07% 0.035 -0.1615)
OKLCHoklch(31.07% 0.165 282.2)
XYZxyz(5.0687, 2.4683, 20.2839)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C117F #647F11
analogous
#112D7F #2C117F #63117F
triadic
#2C117F #7F2C11 #117F2C
tetradic
#2C117F #7F112D #647F11 #117F63
square
#2C117F #7F112D #647F11 #117F63
split-complementary
#2C117F #7F6311 #2D7F11
monochromatic
#09041B #190A49 #2C117F #3F18B5 #5628E2

Accessibility & contrast

On white

14.06
#2C117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C117F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C117F#FFFFFF#000000##FFFFFF
##2C117F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c117f;
/* rgb */ color: rgb(44, 17, 127);
/* oklch */ color: oklch(31.1% 0.165 282.2);
Tailwind
colors: {
  custom: {
    50: '#7255a5',
    500: '#2c117f',
    950: '#000000',
  },
}
SCSS
$custom: #2c117f;
$custom-light: #7255a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c117f",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 254.727,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31068,
    "c": 0.16526,
    "h": 282.2
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#2C117F
secondary
#96B537
accent
#F335C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C117F

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

Preview Lab → · Contrast checker → · Palette generator →

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