#1C187A#1C187A

#1C187A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.157 H 273.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#1C187A
RGBrgb(28, 24, 122)
HSLhsl(242, 67%, 29%)
HSVhsv(242, 80%, 48%)
CMYKcmyk(77%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.01, 36.11, -54.11)
CIE-LCHlch(17.01, 65.05, 303.72°)
OKLaboklab(30.02% 0.0091 -0.1565)
OKLCHoklch(30.02% 0.157 273.3)
XYZxyz(4.3172, 2.3048, 18.6259)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C187A #767A18
analogous
#18457A #1C187A #4D187A
triadic
#1C187A #7A1C18 #187A1C
tetradic
#1C187A #7A1845 #767A18 #187A4D
square
#1C187A #7A1845 #767A18 #187A4D
split-complementary
#1C187A #7A4D18 #457A18
monochromatic
#06051A #100E47 #1C187A #2822AD #3C35D7

Accessibility & contrast

On white

14.37
#1C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C187A
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C187A#FFFFFF#000000##FFFFFF
##1C187A1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1c187a;
/* rgb */ color: rgb(28, 24, 122);
/* oklch */ color: oklch(30.0% 0.157 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a57a2',
    500: '#1c187a',
    950: '#000000',
  },
}
SCSS
$custom: #1c187a;
$custom-light: #6a57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1c187a",
  "rgb": {
    "r": 28,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 242.449,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30023,
    "c": 0.15682,
    "h": 273.3
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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