#1C104C#1C104C

#1C104C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.104 H 284.3°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#1C104C
RGBrgb(28, 16, 76)
HSLhsl(252, 65%, 18%)
HSVhsv(252, 79%, 30%)
CMYKcmyk(63.2%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.10, 24.80, -34.94)
CIE-LCHlch(10.10, 42.85, 305.37°)
OKLaboklab(23.59% 0.0256 -0.1006)
OKLCHoklch(23.59% 0.104 284.3)
XYZxyz(1.9683, 1.1391, 6.9522)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C104C #404C10
analogous
#10224C #1C104C #3A104C
triadic
#1C104C #4C1C10 #104C1C
tetradic
#1C104C #4C1022 #404C10 #104C3A
square
#1C104C #4C1022 #404C10 #104C3A
split-complementary
#1C104C #4C3A10 #224C10
monochromatic
#090519 #090519 #1C104C #2F1B7F #4125B1

Accessibility & contrast

On white

17.10
#1C104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1C104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1C104C#FFFFFF#000000##FFFFFF
##1C104C1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#04202C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1c104c;
/* rgb */ color: rgb(28, 16, 76);
/* oklch */ color: oklch(23.6% 0.104 284.3);
Tailwind
colors: {
  custom: {
    50: '#5f4f7f',
    500: '#1c104c',
    950: '#000000',
  },
}
SCSS
$custom: #1c104c;
$custom-light: #5f4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1c104c",
  "rgb": {
    "r": 28,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23585,
    "c": 0.1038,
    "h": 284.3
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#1C104C
secondary
#758632
accent
#E840C6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C104C

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

Preview Lab → · Contrast checker → · Palette generator →

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