#2C148E#2C148E

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

Color values

HEX#2C148E
RGBrgb(44, 20, 142)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 86%, 56%)
CMYKcmyk(69%, 85.9%, 0%, 44.3%)
CIE-LABlab(20.00, 45.79, -61.76)
CIE-LCHlch(20.00, 76.88, 306.55°)
OKLaboklab(33.11% 0.0282 -0.1783)
OKLCHoklch(33.11% 0.181 279)
XYZxyz(6.1698, 2.9883, 25.8376)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C148E #768E14
analogous
#14398E #2C148E #69148E
triadic
#2C148E #8E2C14 #148E2C
tetradic
#2C148E #8E1439 #768E14 #148E69
square
#2C148E #8E1439 #768E14 #148E69
split-complementary
#2C148E #8E6914 #398E14
monochromatic
#0B0523 #1B0C58 #2C148E #3D1CC4 #5B39E3

Accessibility & contrast

On white

13.14
#2C148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C148E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C148E#FFFFFF#000000##FFFFFF
##2C148E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c148e;
/* rgb */ color: rgb(44, 20, 142);
/* oklch */ color: oklch(33.1% 0.181 279.0);
Tailwind
colors: {
  custom: {
    50: '#7558b0',
    500: '#2c148e',
    950: '#000000',
  },
}
SCSS
$custom: #2c148e;
$custom-light: #7558b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c148e",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 251.803,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33114,
    "c": 0.18054,
    "h": 279
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2C148E
secondary
#A7C23C
accent
#F236CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2C148E

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

Preview Lab → · Contrast checker → · Palette generator →

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