#2C124A#2C124A

#2C124A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.099 H 300.9°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2C124A
RGBrgb(44, 18, 74)
HSLhsl(268, 61%, 18%)
HSVhsv(268, 76%, 29%)
CMYKcmyk(40.5%, 75.7%, 0%, 71%)
CIE-LABlab(12.37, 26.24, -29.77)
CIE-LCHlch(12.37, 39.68, 311.40°)
OKLaboklab(25.61% 0.0507 -0.0848)
OKLCHoklch(25.61% 0.099 300.9)
XYZxyz(2.4907, 1.4625, 6.6283)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124A #304A12
analogous
#12144A #2C124A #48124A
triadic
#2C124A #4A2C12 #124A2C
tetradic
#2C124A #4A1214 #304A12 #124A48
square
#2C124A #4A1214 #304A12 #124A48
split-complementary
#2C124A #4A4812 #144A12
monochromatic
#0F0619 #0F0619 #2C124A #491E7B #672AAC

Accessibility & contrast

On white

16.25
#2C124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C124A
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124A#FFFFFF#000000##FFFFFF
##2C124A1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#251F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c124a;
/* rgb */ color: rgb(44, 18, 74);
/* oklch */ color: oklch(25.6% 0.099 300.9);
Tailwind
colors: {
  custom: {
    50: '#68527d',
    500: '#2c124a',
    950: '#000000',
  },
}
SCSS
$custom: #2c124a;
$custom-light: #68527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124a",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 267.857,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2561,
    "c": 0.09877,
    "h": 300.9
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#2C124A
secondary
#5F8335
accent
#E4449A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C124A

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

Preview Lab → · Contrast checker → · Palette generator →

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