#1C187D#1C187D

#1C187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.161 H 273.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#1C187D
RGBrgb(28, 24, 125)
HSLhsl(242, 68%, 29%)
HSVhsv(242, 81%, 49%)
CMYKcmyk(77.6%, 80.8%, 0%, 51%)
CIE-LABlab(17.37, 37.13, -55.43)
CIE-LCHlch(17.37, 66.72, 303.82°)
OKLaboklab(30.38% 0.0084 -0.1604)
OKLCHoklch(30.38% 0.161 273)
XYZxyz(4.5060, 2.3803, 19.6200)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C187D #797D18
analogous
#18477D #1C187D #4F187D
triadic
#1C187D #7D1C18 #187D1C
tetradic
#1C187D #7D1847 #797D18 #187D4F
square
#1C187D #7D1847 #797D18 #187D4F
split-complementary
#1C187D #7D4F18 #477D18
monochromatic
#06051A #100E4A #1C187D #2822B0 #3D37D9

Accessibility & contrast

On white

14.23
#1C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1C187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C187D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C187D#FFFFFF#000000##FFFFFF
##1C187D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1c187d;
/* rgb */ color: rgb(28, 24, 125);
/* oklch */ color: oklch(30.4% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b57a4',
    500: '#1c187d',
    950: '#000000',
  },
}
SCSS
$custom: #1c187d;
$custom-light: #6b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1c187d",
  "rgb": {
    "r": 28,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 242.376,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30378,
    "c": 0.16062,
    "h": 273
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#1C187D
secondary
#ADB23F
accent
#EB3DE4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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