#1C40AF#1C40AF

#1C40AF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.181 H 265.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#1C40AF
RGBrgb(28, 64, 175)
HSLhsl(225, 72%, 40%)
HSVhsv(225, 84%, 69%)
CMYKcmyk(84%, 63.4%, 0%, 31.4%)
CIE-LABlab(31.82, 30.28, -62.40)
CIE-LCHlch(31.82, 69.36, 295.88°)
OKLaboklab(42.38% -0.0152 -0.1807)
OKLCHoklch(42.38% 0.181 265.2)
XYZxyz(10.0474, 7.0076, 41.3722)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C40AF #AF8B1C
analogous
#1C8AAF #1C40AF #411CAF
triadic
#1C40AF #AF1C40 #40AF1C
tetradic
#1C40AF #AF1C8A #AF8B1C #1CAF41
square
#1C40AF #AF1C8A #AF8B1C #1CAF41
split-complementary
#1C40AF #AF411C #8AAF1C
monochromatic
#0B1945 #142D7A #1C40AF #2B57DD #6081E6

Accessibility & contrast

On white

8.74
#1C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1C40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C40AF
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C40AF#FFFFFF#000000##FFFFFF
##1C40AF1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1c40af;
/* rgb */ color: rgb(28, 64, 175);
/* oklch */ color: oklch(42.4% 0.181 265.2);
Tailwind
colors: {
  custom: {
    50: '#7474c8',
    500: '#1c40af',
    950: '#000000',
  },
}
SCSS
$custom: #1c40af;
$custom-light: #7474c8;
$custom-dark: #000000;
JSON
{
  "hex": "#1c40af",
  "rgb": {
    "r": 28,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 225.306,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.18133,
    "h": 265.2
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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