#1A104C#1A104C

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

Color values

HEX#1A104C
RGBrgb(26, 16, 76)
HSLhsl(250, 65%, 18%)
HSVhsv(250, 79%, 30%)
CMYKcmyk(65.8%, 78.9%, 0%, 70.2%)
CIE-LABlab(9.89, 24.47, -35.29)
CIE-LCHlch(9.89, 42.94, 304.73°)
OKLaboklab(23.38% 0.0223 -0.1017)
OKLCHoklch(23.38% 0.104 282.4)
XYZxyz(1.9154, 1.1119, 6.9498)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A104C #424C10
analogous
#10244C #1A104C #38104C
triadic
#1A104C #4C1A10 #104C1A
tetradic
#1A104C #4C1024 #424C10 #104C38
square
#1A104C #4C1024 #424C10 #104C38
split-complementary
#1A104C #4C3810 #244C10
monochromatic
#090519 #090519 #1A104C #2B1B7F #3D25B1

Accessibility & contrast

On white

17.18
#1A104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1A104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A104C
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A104C#FFFFFF#000000##FFFFFF
##1A104C1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00194B
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1a104c;
/* rgb */ color: rgb(26, 16, 76);
/* oklch */ color: oklch(23.4% 0.104 282.4);
Tailwind
colors: {
  custom: {
    50: '#5e4f7f',
    500: '#1a104c',
    950: '#000000',
  },
}
SCSS
$custom: #1a104c;
$custom-light: #5e4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a104c",
  "rgb": {
    "r": 26,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 250,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23384,
    "c": 0.10411,
    "h": 282.4
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#1A104C
secondary
#788632
accent
#E840CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1A104C

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

Preview Lab → · Contrast checker → · Palette generator →

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