#2C125A#2C125A

#2C125A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.119 H 293.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2C125A
RGBrgb(44, 18, 90)
HSLhsl(262, 67%, 21%)
HSVhsv(262, 80%, 35%)
CMYKcmyk(51.1%, 80%, 0%, 64.7%)
CIE-LABlab(13.86, 31.03, -38.25)
CIE-LCHlch(13.86, 49.26, 309.05°)
OKLaboklab(27.14% 0.047 -0.1097)
OKLCHoklch(27.14% 0.119 293.2)
XYZxyz(3.1000, 1.7062, 9.8369)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C125A #405A12
analogous
#121C5A #2C125A #50125A
triadic
#2C125A #5A2C12 #125A2C
tetradic
#2C125A #5A121C #405A12 #125A50
square
#2C125A #5A121C #405A12 #125A50
split-complementary
#2C125A #5A5012 #1C5A12
monochromatic
#0C051A #130827 #2C125A #451C8D #5E26C0

Accessibility & contrast

On white

15.66
#2C125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C125A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C125A#FFFFFF#000000##FFFFFF
##2C125A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1E2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c125a;
/* rgb */ color: rgb(44, 18, 90);
/* oklch */ color: oklch(27.1% 0.119 293.2);
Tailwind
colors: {
  custom: {
    50: '#6b5389',
    500: '#2c125a',
    950: '#000000',
  },
}
SCSS
$custom: #2c125a;
$custom-light: #6b5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2c125a",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 261.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27135,
    "c": 0.11936,
    "h": 293.2
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#2C125A
secondary
#719335
accent
#EA3EAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C125A

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

Preview Lab → · Contrast checker → · Palette generator →

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