#2C128F#2C128F

#2C128F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.183 H 279.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2C128F
RGBrgb(44, 18, 143)
HSLhsl(252, 78%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69.2%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.85, 46.89, -62.63)
CIE-LCHlch(19.85, 78.24, 306.82°)
OKLaboklab(33.05% 0.0286 -0.1808)
OKLCHoklch(33.05% 0.183 279)
XYZxyz(6.2113, 2.9507, 26.2235)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C128F #758F12
analogous
#12378F #2C128F #6B128F
triadic
#2C128F #8F2C12 #128F2C
tetradic
#2C128F #8F1237 #758F12 #128F6B
square
#2C128F #8F1237 #758F12 #128F6B
split-complementary
#2C128F #8F6B12 #378F12
monochromatic
#0B0422 #1B0B59 #2C128F #3D19C5 #5A36E6

Accessibility & contrast

On white

13.21
#2C128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C128F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C128F#FFFFFF#000000##FFFFFF
##2C128F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c128f;
/* rgb */ color: rgb(44, 18, 143);
/* oklch */ color: oklch(33.0% 0.183 279.0);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2c128f',
    950: '#000000',
  },
}
SCSS
$custom: #2c128f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c128f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 252.48,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33046,
    "c": 0.18307,
    "h": 279
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#2C128F
secondary
#A7C33A
accent
#F434CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C128F

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

Preview Lab → · Contrast checker → · Palette generator →

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