#2C107E#2C107E

#2C107E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.165 H 282.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#2C107E
RGBrgb(44, 16, 126)
HSLhsl(255, 77%, 28%)
HSVhsv(255, 87%, 49%)
CMYKcmyk(65.1%, 87.3%, 0%, 50.6%)
CIE-LABlab(17.52, 42.74, -55.78)
CIE-LCHlch(17.52, 70.27, 307.46°)
OKLaboklab(30.86% 0.0358 -0.1609)
OKLCHoklch(30.86% 0.165 282.5)
XYZxyz(4.9887, 2.4121, 19.9373)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C107E #627E10
analogous
#102B7E #2C107E #63107E
triadic
#2C107E #7E2C10 #107E2C
tetradic
#2C107E #7E102B #627E10 #107E63
square
#2C107E #7E102B #627E10 #107E63
split-complementary
#2C107E #7E6310 #2B7E10
monochromatic
#09031B #190948 #2C107E #3F17B4 #5625E3

Accessibility & contrast

On white

14.17
#2C107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C107E
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C107E#FFFFFF#000000##FFFFFF
##2C107E1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c107e;
/* rgb */ color: rgb(44, 16, 126);
/* oklch */ color: oklch(30.9% 0.165 282.5);
Tailwind
colors: {
  custom: {
    50: '#7254a5',
    500: '#2c107e',
    950: '#000000',
  },
}
SCSS
$custom: #2c107e;
$custom-light: #7254a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c107e",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 255.273,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30856,
    "c": 0.16483,
    "h": 282.5
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#2C107E
secondary
#94B436
accent
#F434C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C107E

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

Preview Lab → · Contrast checker → · Palette generator →

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