#1C1F87#1C1F87

#1C1F87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.167 H 271.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#1C1F87
RGBrgb(28, 31, 135)
HSLhsl(238, 66%, 32%)
HSVhsv(238, 79%, 53%)
CMYKcmyk(79.3%, 77%, 0%, 47.1%)
CIE-LABlab(19.95, 36.57, -57.50)
CIE-LCHlch(19.95, 68.14, 302.46°)
OKLaboklab(32.54% 0.0035 -0.1665)
OKLCHoklch(32.54% 0.167 271.2)
XYZxyz(5.3406, 2.9755, 23.2098)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1F87 #87841C
analogous
#1C5587 #1C1F87 #4F1C87
triadic
#1C1F87 #871C1F #1F871C
tetradic
#1C1F87 #871C55 #87841C #1C874F
square
#1C1F87 #871C55 #87841C #1C874F
split-complementary
#1C1F87 #874F1C #55871C
monochromatic
#070822 #111354 #1C1F87 #272BBA #4549D8

Accessibility & contrast

On white

13.16
#1C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1C1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1F87
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1F87#FFFFFF#000000##FFFFFF
##1C1F871.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1c1f87;
/* rgb */ color: rgb(28, 31, 135);
/* oklch */ color: oklch(32.5% 0.167 271.2);
Tailwind
colors: {
  custom: {
    50: '#6c5cab',
    500: '#1c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #1c1f87;
$custom-light: #6c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1f87",
  "rgb": {
    "r": 28,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 238.318,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32537,
    "c": 0.16652,
    "h": 271.2
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#1C1F87
secondary
#BAB745
accent
#E43FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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