#1C2187#1C2187

#1C2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.164 H 270.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1C2187
RGBrgb(28, 33, 135)
HSLhsl(237, 66%, 32%)
HSVhsv(237, 79%, 53%)
CMYKcmyk(79.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.37, 35.36, -56.79)
CIE-LCHlch(20.37, 66.90, 301.91°)
OKLaboklab(32.84% 0.0027 -0.1644)
OKLCHoklch(32.84% 0.164 270.9)
XYZxyz(5.3944, 3.0833, 23.2278)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2187 #87821C
analogous
#1C5787 #1C2187 #4D1C87
triadic
#1C2187 #871C21 #21871C
tetradic
#1C2187 #871C57 #87821C #1C874D
square
#1C2187 #871C57 #87821C #1C874D
split-complementary
#1C2187 #874D1C #57871C
monochromatic
#070822 #111554 #1C2187 #272DBA #454CD8

Accessibility & contrast

On white

12.99
#1C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1C2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2187
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2187#FFFFFF#000000##FFFFFF
##1C21871.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1c2187;
/* rgb */ color: rgb(28, 33, 135);
/* oklch */ color: oklch(32.8% 0.164 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c5dab',
    500: '#1c2187',
    950: '#000000',
  },
}
SCSS
$custom: #1c2187;
$custom-light: #6c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2187",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 237.196,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.16446,
    "h": 270.9
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#1C2187
secondary
#BAB445
accent
#E13FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C2187

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

Preview Lab → · Contrast checker → · Palette generator →

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