#2C137D#2C137D

#2C137D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.161 H 282.4°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#2C137D
RGBrgb(44, 19, 125)
HSLhsl(254, 74%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(64.8%, 84.8%, 0%, 51%)
CIE-LABlab(17.83, 41.16, -54.62)
CIE-LCHlch(17.83, 68.39, 307.00°)
OKLaboklab(31.04% 0.0347 -0.1575)
OKLCHoklch(31.04% 0.161 282.4)
XYZxyz(4.9721, 2.4815, 19.6150)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C137D #647D13
analogous
#132F7D #2C137D #61137D
triadic
#2C137D #7D2C13 #137D2C
tetradic
#2C137D #7D132F #647D13 #137D61
square
#2C137D #7D132F #647D13 #137D61
split-complementary
#2C137D #7D6113 #2F7D13
monochromatic
#09041B #190B48 #2C137D #3F1BB2 #562CDF

Accessibility & contrast

On white

14.03
#2C137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C137D
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C137D#FFFFFF#000000##FFFFFF
##2C137D1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c137d;
/* rgb */ color: rgb(44, 19, 125);
/* oklch */ color: oklch(31.0% 0.161 282.4);
Tailwind
colors: {
  custom: {
    50: '#7156a4',
    500: '#2c137d',
    950: '#000000',
  },
}
SCSS
$custom: #2c137d;
$custom-light: #7156a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c137d",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 254.151,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3104,
    "c": 0.16132,
    "h": 282.4
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#2C137D
secondary
#96B339
accent
#F038C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C137D

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

Preview Lab → · Contrast checker → · Palette generator →

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