#2C118F#2C118F

#2C118F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.184 H 279.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2C118F
RGBrgb(44, 17, 143)
HSLhsl(253, 79%, 31%)
HSVhsv(253, 88%, 56%)
CMYKcmyk(69.2%, 88.1%, 0%, 43.9%)
CIE-LABlab(19.72, 47.27, -62.85)
CIE-LCHlch(19.72, 78.64, 306.95°)
OKLaboklab(32.96% 0.029 -0.1814)
OKLCHoklch(32.96% 0.184 279.1)
XYZxyz(6.1955, 2.9190, 26.2182)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C118F #748F11
analogous
#11358F #2C118F #6B118F
triadic
#2C118F #8F2C11 #118F2C
tetradic
#2C118F #8F1135 #748F11 #118F6B
square
#2C118F #8F1135 #748F11 #118F6B
split-complementary
#2C118F #8F6B11 #358F11
monochromatic
#0A0422 #1B0A58 #2C118F #3D18C6 #5A34E7

Accessibility & contrast

On white

13.26
#2C118F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C118F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C118F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C118F#FFFFFF#000000##FFFFFF
##2C118F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c118f;
/* rgb */ color: rgb(44, 17, 143);
/* oklch */ color: oklch(33.0% 0.184 279.1);
Tailwind
colors: {
  custom: {
    50: '#7656b1',
    500: '#2c118f',
    950: '#000000',
  },
}
SCSS
$custom: #2c118f;
$custom-light: #7656b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c118f",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 143
  },
  "hsl": {
    "h": 252.857,
    "s": 78.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32958,
    "c": 0.18373,
    "h": 279.1
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#2C118F
secondary
#A6C338
accent
#F533CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C118F

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

Preview Lab → · Contrast checker → · Palette generator →

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