#2C137C#2C137C

#2C137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.160 H 282.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2C137C
RGBrgb(44, 19, 124)
HSLhsl(254, 73%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(64.5%, 84.7%, 0%, 51.4%)
CIE-LABlab(17.72, 40.86, -54.17)
CIE-LCHlch(17.72, 67.85, 307.02°)
OKLaboklab(30.93% 0.035 -0.1562)
OKLCHoklch(30.93% 0.16 282.6)
XYZxyz(4.9085, 2.4561, 19.2803)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C137C #637C13
analogous
#132E7C #2C137C #60137C
triadic
#2C137C #7C2C13 #137C2C
tetradic
#2C137C #7C132E #637C13 #137C60
square
#2C137C #7C132E #637C13 #137C60
split-complementary
#2C137C #7C6013 #2E7C13
monochromatic
#09041B #190B47 #2C137C #3F1BB1 #562BDF

Accessibility & contrast

On white

14.08
#2C137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C137C
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C137C#FFFFFF#000000##FFFFFF
##2C137C1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c137c;
/* rgb */ color: rgb(44, 19, 124);
/* oklch */ color: oklch(30.9% 0.160 282.6);
Tailwind
colors: {
  custom: {
    50: '#7156a3',
    500: '#2c137c',
    950: '#000000',
  },
}
SCSS
$custom: #2c137c;
$custom-light: #7156a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c137c",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 254.286,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30926,
    "c": 0.16013,
    "h": 282.6
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#2C137C
secondary
#95B239
accent
#F038C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C137C

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

Preview Lab → · Contrast checker → · Palette generator →

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