#2C148F#2C148F

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

Color values

HEX#2C148F
RGBrgb(44, 20, 143)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 86%, 56%)
CMYKcmyk(69.2%, 86%, 0%, 43.9%)
CIE-LABlab(20.12, 46.08, -62.18)
CIE-LCHlch(20.12, 77.40, 306.54°)
OKLaboklab(33.23% 0.0279 -0.1795)
OKLCHoklch(33.23% 0.182 278.8)
XYZxyz(6.2452, 3.0184, 26.2348)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C148F #778F14
analogous
#143A8F #2C148F #6A148F
triadic
#2C148F #8F2C14 #148F2C
tetradic
#2C148F #8F143A #778F14 #148F6A
square
#2C148F #8F143A #778F14 #148F6A
split-complementary
#2C148F #8F6A14 #3A8F14
monochromatic
#0B0524 #1B0C59 #2C148F #3D1CC5 #5B3AE3

Accessibility & contrast

On white

13.09
#2C148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C148F
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C148F#FFFFFF#000000##FFFFFF
##2C148F1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c148f;
/* rgb */ color: rgb(44, 20, 143);
/* oklch */ color: oklch(33.2% 0.182 278.8);
Tailwind
colors: {
  custom: {
    50: '#7558b1',
    500: '#2c148f',
    950: '#000000',
  },
}
SCSS
$custom: #2c148f;
$custom-light: #7558b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c148f",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 251.707,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.1817,
    "h": 278.8
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C148F

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

Preview Lab → · Contrast checker → · Palette generator →

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