#2C137B#2C137B

#2C137B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.159 H 282.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2C137B
RGBrgb(44, 19, 123)
HSLhsl(254, 73%, 28%)
HSVhsv(254, 85%, 48%)
CMYKcmyk(64.2%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.60, 40.56, -53.73)
CIE-LCHlch(17.60, 67.31, 307.05°)
OKLaboklab(30.81% 0.0354 -0.1549)
OKLCHoklch(30.81% 0.159 282.9)
XYZxyz(4.8456, 2.4309, 18.9489)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C137B #627B13
analogous
#132E7B #2C137B #60137B
triadic
#2C137B #7B2C13 #137B2C
tetradic
#2C137B #7B132E #627B13 #137B60
square
#2C137B #7B132E #627B13 #137B60
split-complementary
#2C137B #7B6013 #2E7B13
monochromatic
#09041B #190B46 #2C137B #3F1BB0 #562ADE

Accessibility & contrast

On white

14.13
#2C137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C137B
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C137B#FFFFFF#000000##FFFFFF
##2C137B1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c137b;
/* rgb */ color: rgb(44, 19, 123);
/* oklch */ color: oklch(30.8% 0.159 282.9);
Tailwind
colors: {
  custom: {
    50: '#7155a2',
    500: '#2c137b',
    950: '#000000',
  },
}
SCSS
$custom: #2c137b;
$custom-light: #7155a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c137b",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 254.423,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30812,
    "c": 0.15894,
    "h": 282.9
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#2C137B
secondary
#94B139
accent
#F038C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C137B

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

Preview Lab → · Contrast checker → · Palette generator →

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