#1C1787#1C1787

#1C1787 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.174 H 272.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#1C1787
RGBrgb(28, 23, 135)
HSLhsl(243, 71%, 31%)
HSVhsv(243, 83%, 53%)
CMYKcmyk(79.3%, 83%, 0%, 47.1%)
CIE-LABlab(18.40, 41.00, -60.05)
CIE-LCHlch(18.40, 72.72, 304.32°)
OKLaboklab(31.45% 0.0064 -0.1738)
OKLCHoklch(31.45% 0.174 272.1)
XYZxyz(5.1570, 2.6084, 23.1487)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1787 #828717
analogous
#174A87 #1C1787 #541787
triadic
#1C1787 #871C17 #17871C
tetradic
#1C1787 #87174A #828717 #178754
square
#1C1787 #87174A #828717 #178754
split-complementary
#1C1787 #875417 #4A8717
monochromatic
#06051E #110E53 #1C1787 #2720BB #423BDE

Accessibility & contrast

On white

13.80
#1C1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1C1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1787
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1787#FFFFFF#000000##FFFFFF
##1C17871.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002785
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1c1787;
/* rgb */ color: rgb(28, 23, 135);
/* oklch */ color: oklch(31.5% 0.174 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d57ab',
    500: '#1c1787',
    950: '#000000',
  },
}
SCSS
$custom: #1c1787;
$custom-light: #6d57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1787",
  "rgb": {
    "r": 28,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 242.679,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31453,
    "c": 0.17391,
    "h": 272.1
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#1C1787
secondary
#B5BB3F
accent
#EE3AE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1C1787

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

Preview Lab → · Contrast checker → · Palette generator →

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