#2C104C#2C104C

#2C104C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.104 H 300.4°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2C104C
RGBrgb(44, 16, 76)
HSLhsl(268, 65%, 18%)
HSVhsv(268, 79%, 30%)
CMYKcmyk(42.1%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.14, 27.95, -31.52)
CIE-LCHlch(12.14, 42.13, 311.57°)
OKLaboklab(25.51% 0.0527 -0.0899)
OKLCHoklch(25.51% 0.104 300.4)
XYZxyz(2.5282, 1.4278, 6.9785)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C104C #304C10
analogous
#10124C #2C104C #4A104C
triadic
#2C104C #4C2C10 #104C2C
tetradic
#2C104C #4C1012 #304C10 #104C4A
square
#2C104C #4C1012 #304C10 #104C4A
split-complementary
#2C104C #4C4A10 #124C10
monochromatic
#0F0519 #0F0519 #2C104C #491B7F #6725B1

Accessibility & contrast

On white

16.33
#2C104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C104C
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C104C#FFFFFF#000000##FFFFFF
##2C104C1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#251F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c104c;
/* rgb */ color: rgb(44, 16, 76);
/* oklch */ color: oklch(25.5% 0.104 300.4);
Tailwind
colors: {
  custom: {
    50: '#69517f',
    500: '#2c104c',
    950: '#000000',
  },
}
SCSS
$custom: #2c104c;
$custom-light: #69517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c104c",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 268,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25505,
    "c": 0.10422,
    "h": 300.4
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#2C104C
secondary
#5F8632
accent
#E8409A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C104C

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

Preview Lab → · Contrast checker → · Palette generator →

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