#1C2787#1C2787

#1C2787 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.158 H 269.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1C2787
RGBrgb(28, 39, 135)
HSLhsl(234, 66%, 32%)
HSVhsv(234, 79%, 53%)
CMYKcmyk(79.3%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.75, 31.57, -54.52)
CIE-LCHlch(21.75, 63.00, 300.07°)
OKLaboklab(33.83% -0.0002 -0.1578)
OKLCHoklch(33.83% 0.158 269.9)
XYZxyz(5.5761, 3.4466, 23.2883)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2787 #877C1C
analogous
#1C5D87 #1C2787 #471C87
triadic
#1C2787 #871C27 #27871C
tetradic
#1C2787 #871C5D #877C1C #1C8747
square
#1C2787 #871C5D #877C1C #1C8747
split-complementary
#1C2787 #87471C #5D871C
monochromatic
#070A22 #111854 #1C2787 #2736BA #4554D8

Accessibility & contrast

On white

12.43
#1C2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1C2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2787
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2787#FFFFFF#000000##FFFFFF
##1C27871.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1c2787;
/* rgb */ color: rgb(28, 39, 135);
/* oklch */ color: oklch(33.8% 0.158 269.9);
Tailwind
colors: {
  custom: {
    50: '#6c61ab',
    500: '#1c2787',
    950: '#000000',
  },
}
SCSS
$custom: #1c2787;
$custom-light: #6c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2787",
  "rgb": {
    "r": 28,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 233.832,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3383,
    "c": 0.15784,
    "h": 269.9
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#1C2787
secondary
#BAAE45
accent
#D73FE9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1C2787

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

Preview Lab → · Contrast checker → · Palette generator →

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