#1C2871#1C2871

#1C2871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.126 H 270.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1C2871
RGBrgb(28, 40, 113)
HSLhsl(232, 60%, 28%)
HSVhsv(232, 75%, 44%)
CMYKcmyk(75.2%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.87, 22.41, -43.63)
CIE-LCHlch(19.87, 49.05, 297.19°)
OKLaboklab(31.8% 0.0007 -0.126)
OKLCHoklch(31.8% 0.126 270.3)
XYZxyz(4.2173, 2.9563, 15.9679)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2871 #71651C
analogous
#1C5371 #1C2871 #3A1C71
triadic
#1C2871 #711C28 #28711C
tetradic
#1C2871 #711C53 #71651C #1C713A
square
#1C2871 #711C53 #71651C #1C713A
split-complementary
#1C2871 #713A1C #53711C
monochromatic
#060919 #101740 #1C2871 #2839A2 #394ECE

Accessibility & contrast

On white

13.20
#1C2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1C2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2871
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2871#FFFFFF#000000##FFFFFF
##1C28711.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1c2871;
/* rgb */ color: rgb(28, 40, 113);
/* oklch */ color: oklch(31.8% 0.126 270.3);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1c2871',
    950: '#000000',
  },
}
SCSS
$custom: #1c2871;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2871",
  "rgb": {
    "r": 28,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 231.529,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.318,
    "c": 0.12597,
    "h": 270.3
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#1C2871
secondary
#A69843
accent
#CD44E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1C2871

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

Preview Lab → · Contrast checker → · Palette generator →

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