#2C124E#2C124E

#2C124E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.104 H 298.7°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2C124E
RGBrgb(44, 18, 78)
HSLhsl(266, 63%, 19%)
HSVhsv(266, 77%, 31%)
CMYKcmyk(43.6%, 76.9%, 0%, 69.4%)
CIE-LABlab(12.72, 27.42, -31.95)
CIE-LCHlch(12.72, 42.11, 310.64°)
OKLaboklab(25.98% 0.0499 -0.0912)
OKLCHoklch(25.98% 0.104 298.7)
XYZxyz(2.6298, 1.5181, 7.3607)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124E #344E12
analogous
#12164E #2C124E #4A124E
triadic
#2C124E #4E2C12 #124E2C
tetradic
#2C124E #4E1216 #344E12 #124E4A
square
#2C124E #4E1216 #344E12 #124E4A
split-complementary
#2C124E #4E4A12 #164E12
monochromatic
#0E0619 #10071C #2C124E #481D80 #6429B1

Accessibility & contrast

On white

16.11
#2C124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C124E
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124E#FFFFFF#000000##FFFFFF
##2C124E1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c124e;
/* rgb */ color: rgb(44, 18, 78);
/* oklch */ color: oklch(26.0% 0.104 298.7);
Tailwind
colors: {
  custom: {
    50: '#695280',
    500: '#2c124e',
    950: '#000000',
  },
}
SCSS
$custom: #2c124e;
$custom-light: #695280;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124e",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 266,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25975,
    "c": 0.10397,
    "h": 298.7
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2C124E
secondary
#638735
accent
#E6429F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C124E

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

Preview Lab → · Contrast checker → · Palette generator →

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