#2C124C#2C124C

#2C124C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.101 H 299.8°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#2C124C
RGBrgb(44, 18, 76)
HSLhsl(267, 62%, 18%)
HSVhsv(267, 76%, 30%)
CMYKcmyk(42.1%, 76.3%, 0%, 70.2%)
CIE-LABlab(12.54, 26.83, -30.86)
CIE-LCHlch(12.54, 40.89, 311.00°)
OKLaboklab(25.79% 0.0503 -0.088)
OKLCHoklch(25.79% 0.101 299.8)
XYZxyz(2.5592, 1.4899, 6.9888)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124C #324C12
analogous
#12154C #2C124C #49124C
triadic
#2C124C #4C2C12 #124C2C
tetradic
#2C124C #4C1215 #324C12 #124C49
square
#2C124C #4C1215 #324C12 #124C49
split-complementary
#2C124C #4C4912 #154C12
monochromatic
#0E0619 #0F061B #2C124C #491E7D #6529AF

Accessibility & contrast

On white

16.18
#2C124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C124C
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124C#FFFFFF#000000##FFFFFF
##2C124C1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#25202D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c124c;
/* rgb */ color: rgb(44, 18, 76);
/* oklch */ color: oklch(25.8% 0.101 299.8);
Tailwind
colors: {
  custom: {
    50: '#69527f',
    500: '#2c124c',
    950: '#000000',
  },
}
SCSS
$custom: #2c124c;
$custom-light: #69527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124c",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 266.897,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25791,
    "c": 0.10138,
    "h": 299.8
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#2C124C
secondary
#618535
accent
#E5439C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C124C

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

Preview Lab → · Contrast checker → · Palette generator →

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