#1C187B#1C187B

#1C187B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.158 H 273.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#1C187B
RGBrgb(28, 24, 123)
HSLhsl(242, 67%, 29%)
HSVhsv(242, 80%, 48%)
CMYKcmyk(77.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.13, 36.45, -54.55)
CIE-LCHlch(17.13, 65.61, 303.75°)
OKLaboklab(30.14% 0.0089 -0.1578)
OKLCHoklch(30.14% 0.158 273.2)
XYZxyz(4.3795, 2.3298, 18.9539)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C187B #777B18
analogous
#18467B #1C187B #4E187B
triadic
#1C187B #7B1C18 #187B1C
tetradic
#1C187B #7B1846 #777B18 #187B4E
square
#1C187B #7B1846 #777B18 #187B4E
split-complementary
#1C187B #7B4E18 #467B18
monochromatic
#06051A #100E48 #1C187B #2822AE #3C36D8

Accessibility & contrast

On white

14.32
#1C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1C187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C187B
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C187B#FFFFFF#000000##FFFFFF
##1C187B1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1c187b;
/* rgb */ color: rgb(28, 24, 123);
/* oklch */ color: oklch(30.1% 0.158 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a57a2',
    500: '#1c187b',
    950: '#000000',
  },
}
SCSS
$custom: #1c187b;
$custom-light: #6a57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1c187b",
  "rgb": {
    "r": 28,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 242.424,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30141,
    "c": 0.15809,
    "h": 273.2
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#1C187B
secondary
#ABB03F
accent
#EA3EE3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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