#2C118E#2C118E

#2C118E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.183 H 279.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2C118E
RGBrgb(44, 17, 142)
HSLhsl(253, 79%, 31%)
HSVhsv(253, 88%, 56%)
CMYKcmyk(69%, 88%, 0%, 44.3%)
CIE-LABlab(19.59, 46.99, -62.43)
CIE-LCHlch(19.59, 78.13, 306.97°)
OKLaboklab(32.84% 0.0293 -0.1802)
OKLCHoklch(32.84% 0.183 279.2)
XYZxyz(6.1201, 2.8888, 25.8210)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C118E #738E11
analogous
#11348E #2C118E #6A118E
triadic
#2C118E #8E2C11 #118E2C
tetradic
#2C118E #8E1134 #738E11 #118E6A
square
#2C118E #8E1134 #738E11 #118E6A
split-complementary
#2C118E #8E6A11 #348E11
monochromatic
#0A0421 #1B0A57 #2C118E #3D18C5 #5A33E7

Accessibility & contrast

On white

13.31
#2C118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C118E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C118E#FFFFFF#000000##FFFFFF
##2C118E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c118e;
/* rgb */ color: rgb(44, 17, 142);
/* oklch */ color: oklch(32.8% 0.183 279.2);
Tailwind
colors: {
  custom: {
    50: '#7556b0',
    500: '#2c118e',
    950: '#000000',
  },
}
SCSS
$custom: #2c118e;
$custom-light: #7556b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c118e",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 252.96,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32839,
    "c": 0.18258,
    "h": 279.2
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#2C118E
secondary
#A5C238
accent
#F533CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C118E

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

Preview Lab → · Contrast checker → · Palette generator →

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