#2C147E#2C147E

#2C147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.162 H 282.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2C147E
RGBrgb(44, 20, 126)
HSLhsl(254, 73%, 29%)
HSVhsv(254, 84%, 49%)
CMYKcmyk(65.1%, 84.1%, 0%, 50.6%)
CIE-LABlab(18.11, 41.00, -54.81)
CIE-LCHlch(18.11, 68.45, 306.80°)
OKLaboklab(31.26% 0.0338 -0.1581)
OKLCHoklch(31.26% 0.162 282.1)
XYZxyz(5.0536, 2.5418, 19.9589)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C147E #667E14
analogous
#14317E #2C147E #61147E
triadic
#2C147E #7E2C14 #147E2C
tetradic
#2C147E #7E1431 #667E14 #147E61
square
#2C147E #7E1431 #667E14 #147E61
split-complementary
#2C147E #7E6114 #317E14
monochromatic
#09041A #1A0C49 #2C147E #3E1CB3 #562EDE

Accessibility & contrast

On white

13.92
#2C147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C147E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C147E#FFFFFF#000000##FFFFFF
##2C147E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c147e;
/* rgb */ color: rgb(44, 20, 126);
/* oklch */ color: oklch(31.3% 0.162 282.1);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2c147e',
    950: '#000000',
  },
}
SCSS
$custom: #2c147e;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c147e",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 253.585,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31262,
    "c": 0.16168,
    "h": 282.1
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#2C147E
secondary
#98B33A
accent
#EF38C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C147E

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

Preview Lab → · Contrast checker → · Palette generator →

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