#2C124D#2C124D

#2C124D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.103 H 299.2°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2C124D
RGBrgb(44, 18, 77)
HSLhsl(266, 62%, 19%)
HSVhsv(266, 77%, 30%)
CMYKcmyk(42.9%, 76.6%, 0%, 69.8%)
CIE-LABlab(12.63, 27.12, -31.41)
CIE-LCHlch(12.63, 41.50, 310.81°)
OKLaboklab(25.88% 0.0501 -0.0896)
OKLCHoklch(25.88% 0.103 299.2)
XYZxyz(2.5942, 1.5039, 7.1733)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124D #334D12
analogous
#12154D #2C124D #49124D
triadic
#2C124D #4D2C12 #124D2C
tetradic
#2C124D #4D1215 #334D12 #124D49
square
#2C124D #4D1215 #334D12 #124D49
split-complementary
#2C124D #4D4912 #154D12
monochromatic
#0E0619 #10061B #2C124D #481E7F #6529B0

Accessibility & contrast

On white

16.14
#2C124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C124D
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124D#FFFFFF#000000##FFFFFF
##2C124D1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#24202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c124d;
/* rgb */ color: rgb(44, 18, 77);
/* oklch */ color: oklch(25.9% 0.103 299.2);
Tailwind
colors: {
  custom: {
    50: '#69527f',
    500: '#2c124d',
    950: '#000000',
  },
}
SCSS
$custom: #2c124d;
$custom-light: #69527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124d",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 266.441,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25882,
    "c": 0.10268,
    "h": 299.2
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#2C124D
secondary
#628635
accent
#E5439E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C124D

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

Preview Lab → · Contrast checker → · Palette generator →

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