#2C104D#2C104D

#2C104D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.105 H 299.8°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2C104D
RGBrgb(44, 16, 77)
HSLhsl(268, 66%, 18%)
HSVhsv(268, 79%, 30%)
CMYKcmyk(42.9%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.23, 28.25, -32.06)
CIE-LCHlch(12.23, 42.73, 311.38°)
OKLaboklab(25.6% 0.0525 -0.0915)
OKLCHoklch(25.6% 0.105 299.8)
XYZxyz(2.5632, 1.4418, 7.1630)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C104D #314D10
analogous
#10124D #2C104D #4A104D
triadic
#2C104D #4D2C10 #104D2C
tetradic
#2C104D #4D1012 #314D10 #104D4A
square
#2C104D #4D1012 #314D10 #104D4A
split-complementary
#2C104D #4D4A10 #124D10
monochromatic
#0E0519 #0F051A #2C104D #491B80 #6625B2

Accessibility & contrast

On white

16.30
#2C104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C104D
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C104D#FFFFFF#000000##FFFFFF
##2C104D1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#241F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c104d;
/* rgb */ color: rgb(44, 16, 77);
/* oklch */ color: oklch(25.6% 0.105 299.8);
Tailwind
colors: {
  custom: {
    50: '#69517f',
    500: '#2c104d',
    950: '#000000',
  },
}
SCSS
$custom: #2c104d;
$custom-light: #69517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c104d",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 267.541,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25598,
    "c": 0.10548,
    "h": 299.8
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#2C104D
secondary
#608732
accent
#E93F9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C104D

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

Preview Lab → · Contrast checker → · Palette generator →

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