#2C124F#2C124F

#2C124F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.105 H 298.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2C124F
RGBrgb(44, 18, 79)
HSLhsl(266, 63%, 19%)
HSVhsv(266, 77%, 31%)
CMYKcmyk(44.3%, 77.2%, 0%, 69%)
CIE-LABlab(12.81, 27.72, -32.49)
CIE-LCHlch(12.81, 42.71, 310.47°)
OKLaboklab(26.07% 0.0497 -0.0928)
OKLCHoklch(26.07% 0.105 298.2)
XYZxyz(2.6659, 1.5326, 7.5510)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C124F #354F12
analogous
#12174F #2C124F #4B124F
triadic
#2C124F #4F2C12 #124F2C
tetradic
#2C124F #4F1217 #354F12 #124F4B
square
#2C124F #4F1217 #354F12 #124F4B
split-complementary
#2C124F #4F4B12 #174F12
monochromatic
#0E0619 #10071D #2C124F #481D81 #6429B3

Accessibility & contrast

On white

16.07
#2C124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C124F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C124F#FFFFFF#000000##FFFFFF
##2C124F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#23212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c124f;
/* rgb */ color: rgb(44, 18, 79);
/* oklch */ color: oklch(26.1% 0.105 298.2);
Tailwind
colors: {
  custom: {
    50: '#695281',
    500: '#2c124f',
    950: '#000000',
  },
}
SCSS
$custom: #2c124f;
$custom-light: #695281;
$custom-dark: #000000;
JSON
{
  "hex": "#2c124f",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 265.574,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26068,
    "c": 0.10528,
    "h": 298.2
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#2C124F
secondary
#658835
accent
#E642A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C124F

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

Preview Lab → · Contrast checker → · Palette generator →

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