#2C137F#2C137F

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

Color values

HEX#2C137F
RGBrgb(44, 19, 127)
HSLhsl(254, 74%, 29%)
HSVhsv(254, 85%, 50%)
CMYKcmyk(65.4%, 85%, 0%, 50.2%)
CIE-LABlab(18.07, 41.76, -55.51)
CIE-LCHlch(18.07, 69.46, 306.95°)
OKLaboklab(31.27% 0.034 -0.1601)
OKLCHoklch(31.27% 0.164 282)
XYZxyz(5.1011, 2.5331, 20.2947)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C137F #667F13
analogous
#13307F #2C137F #62137F
triadic
#2C137F #7F2C13 #137F2C
tetradic
#2C137F #7F1330 #667F13 #137F62
square
#2C137F #7F1330 #667F13 #137F62
split-complementary
#2C137F #7F6213 #307F13
monochromatic
#09041B #1A0B4A #2C137F #3E1BB4 #562DE0

Accessibility & contrast

On white

13.94
#2C137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C137F
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C137F#FFFFFF#000000##FFFFFF
##2C137F1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c137f;
/* rgb */ color: rgb(44, 19, 127);
/* oklch */ color: oklch(31.3% 0.164 282.0);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2c137f',
    950: '#000000',
  },
}
SCSS
$custom: #2c137f;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c137f",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 253.889,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31269,
    "c": 0.1637,
    "h": 282
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2C137F
secondary
#98B439
accent
#F137C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C137F

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

Preview Lab → · Contrast checker → · Palette generator →

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