#2C137E#2C137E

#2C137E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.163 H 282.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#2C137E
RGBrgb(44, 19, 126)
HSLhsl(254, 74%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(65.1%, 84.9%, 0%, 50.6%)
CIE-LABlab(17.95, 41.46, -55.06)
CIE-LCHlch(17.95, 68.93, 306.98°)
OKLaboklab(31.15% 0.0343 -0.1588)
OKLCHoklch(31.15% 0.163 282.2)
XYZxyz(5.0363, 2.5072, 19.9532)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C137E #657E13
analogous
#132F7E #2C137E #61137E
triadic
#2C137E #7E2C13 #137E2C
tetradic
#2C137E #7E132F #657E13 #137E61
square
#2C137E #7E132F #657E13 #137E61
split-complementary
#2C137E #7E6113 #2F7E13
monochromatic
#09041B #190B49 #2C137E #3F1BB3 #562CDF

Accessibility & contrast

On white

13.99
#2C137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C137E
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C137E#FFFFFF#000000##FFFFFF
##2C137E1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c137e;
/* rgb */ color: rgb(44, 19, 126);
/* oklch */ color: oklch(31.2% 0.163 282.2);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2c137e',
    950: '#000000',
  },
}
SCSS
$custom: #2c137e;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c137e",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 254.019,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31154,
    "c": 0.16252,
    "h": 282.2
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#2C137E
secondary
#97B439
accent
#F037C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C137E

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

Preview Lab → · Contrast checker → · Palette generator →

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