#1C40AD#1C40AD

#1C40AD is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.179 H 265.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#1C40AD
RGBrgb(28, 64, 173)
HSLhsl(225, 72%, 39%)
HSVhsv(225, 84%, 68%)
CMYKcmyk(83.8%, 63%, 0%, 32.2%)
CIE-LABlab(31.65, 29.50, -61.50)
CIE-LCHlch(31.65, 68.21, 295.63°)
OKLaboklab(42.19% -0.0151 -0.1781)
OKLCHoklch(42.19% 0.179 265.1)
XYZxyz(9.8524, 6.9296, 40.3453)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C40AD #AD891C
analogous
#1C89AD #1C40AD #401CAD
triadic
#1C40AD #AD1C40 #40AD1C
tetradic
#1C40AD #AD1C89 #AD891C #1CAD40
square
#1C40AD #AD1C89 #AD891C #1CAD40
split-complementary
#1C40AD #AD401C #89AD1C
monochromatic
#0B1944 #132D78 #1C40AD #2A56DC #5E80E5

Accessibility & contrast

On white

8.80
#1C40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1C40AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C40AD
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C40AD#FFFFFF#000000##FFFFFF
##1C40AD1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1c40ad;
/* rgb */ color: rgb(28, 64, 173);
/* oklch */ color: oklch(42.2% 0.179 265.1);
Tailwind
colors: {
  custom: {
    50: '#7474c6',
    500: '#1c40ad',
    950: '#000000',
  },
}
SCSS
$custom: #1c40ad;
$custom-light: #7474c6;
$custom-dark: #000000;
JSON
{
  "hex": "#1c40ad",
  "rgb": {
    "r": 28,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 225.103,
    "s": 72.139,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.1787,
    "h": 265.1
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#1C40AD
secondary
#C9AE5C
accent
#C239EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1C40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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