#2C127D#2C127D

#2C127D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.162 H 282.5°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2C127D
RGBrgb(44, 18, 125)
HSLhsl(255, 75%, 28%)
HSVhsv(255, 86%, 49%)
CMYKcmyk(64.8%, 85.6%, 0%, 51%)
CIE-LABlab(17.68, 41.60, -54.87)
CIE-LCHlch(17.68, 68.86, 307.17°)
OKLaboklab(30.94% 0.0352 -0.1583)
OKLCHoklch(30.94% 0.162 282.5)
XYZxyz(4.9555, 2.4484, 19.6095)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C127D #637D12
analogous
#122E7D #2C127D #61127D
triadic
#2C127D #7D2C12 #127D2C
tetradic
#2C127D #7D122E #637D12 #127D61
square
#2C127D #7D122E #637D12 #127D61
split-complementary
#2C127D #7D6112 #2E7D12
monochromatic
#09041B #190A48 #2C127D #3F1AB2 #5629E0

Accessibility & contrast

On white

14.10
#2C127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C127D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C127D#FFFFFF#000000##FFFFFF
##2C127D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c127d;
/* rgb */ color: rgb(44, 18, 125);
/* oklch */ color: oklch(30.9% 0.162 282.5);
Tailwind
colors: {
  custom: {
    50: '#7255a4',
    500: '#2c127d',
    950: '#000000',
  },
}
SCSS
$custom: #2c127d;
$custom-light: #7255a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c127d",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 254.579,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30936,
    "c": 0.16213,
    "h": 282.5
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#2C127D
secondary
#95B338
accent
#F136C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C127D

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

Preview Lab → · Contrast checker → · Palette generator →

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