#2C104B#2C104B

#2C104B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.103 H 300.9°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2C104B
RGBrgb(44, 16, 75)
HSLhsl(268, 65%, 18%)
HSVhsv(268, 79%, 29%)
CMYKcmyk(41.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.05, 27.67, -30.97)
CIE-LCHlch(12.05, 41.53, 311.77°)
OKLaboklab(25.41% 0.0529 -0.0883)
OKLCHoklch(25.41% 0.103 300.9)
XYZxyz(2.4937, 1.4140, 6.7968)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C104B #2F4B10
analogous
#10114B #2C104B #49104B
triadic
#2C104B #4B2C10 #104B2C
tetradic
#2C104B #4B1011 #2F4B10 #104B49
square
#2C104B #4B1011 #2F4B10 #104B49
split-complementary
#2C104B #4B4910 #114B10
monochromatic
#0F0519 #0F0519 #2C104B #4A1B7D #6726B0

Accessibility & contrast

On white

16.37
#2C104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C104B
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C104B#FFFFFF#000000##FFFFFF
##2C104B1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#251E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c104b;
/* rgb */ color: rgb(44, 16, 75);
/* oklch */ color: oklch(25.4% 0.103 300.9);
Tailwind
colors: {
  custom: {
    50: '#69517e',
    500: '#2c104b',
    950: '#000000',
  },
}
SCSS
$custom: #2c104b;
$custom-light: #69517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c104b",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 268.475,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25412,
    "c": 0.10295,
    "h": 300.9
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#2C104B
secondary
#5E8532
accent
#E84098
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C104B

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

Preview Lab → · Contrast checker → · Palette generator →

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