#2C138F#2C138F

#2C138F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.182 H 278.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2C138F
RGBrgb(44, 19, 143)
HSLhsl(252, 77%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69.2%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.98, 46.49, -62.41)
CIE-LCHlch(19.98, 77.82, 306.68°)
OKLaboklab(33.14% 0.0282 -0.1802)
OKLCHoklch(33.14% 0.182 278.9)
XYZxyz(6.2279, 2.9839, 26.2290)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C138F #768F13
analogous
#13388F #2C138F #6A138F
triadic
#2C138F #8F2C13 #138F2C
tetradic
#2C138F #8F1338 #768F13 #138F6A
square
#2C138F #8F1338 #768F13 #138F6A
split-complementary
#2C138F #8F6A13 #388F13
monochromatic
#0B0523 #1B0C59 #2C138F #3D1AC5 #5B38E5

Accessibility & contrast

On white

13.15
#2C138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C138F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C138F#FFFFFF#000000##FFFFFF
##2C138F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c138f;
/* rgb */ color: rgb(44, 19, 143);
/* oklch */ color: oklch(33.1% 0.182 278.9);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2c138f',
    950: '#000000',
  },
}
SCSS
$custom: #2c138f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c138f",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 252.097,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33138,
    "c": 0.1824,
    "h": 278.9
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#2C138F
secondary
#A7C33B
accent
#F335CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C138F

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

Preview Lab → · Contrast checker → · Palette generator →

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