#1C40A8#1C40A8

#1C40A8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.172 H 264.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1C40A8
RGBrgb(28, 64, 168)
HSLhsl(225, 71%, 38%)
HSVhsv(225, 83%, 66%)
CMYKcmyk(83.3%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.21, 27.56, -59.23)
CIE-LCHlch(31.21, 65.33, 294.96°)
OKLaboklab(41.73% -0.0152 -0.1714)
OKLCHoklch(41.73% 0.172 264.9)
XYZxyz(9.3777, 6.7397, 37.8448)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C40A8 #A8841C
analogous
#1C86A8 #1C40A8 #3E1CA8
triadic
#1C40A8 #A81C40 #40A81C
tetradic
#1C40A8 #A81C86 #A8841C #1CA83E
square
#1C40A8 #A81C86 #A8841C #1CA83E
split-complementary
#1C40A8 #A83E1C #86A81C
monochromatic
#0B183F #132C74 #1C40A8 #2655DB #5B7EE4

Accessibility & contrast

On white

8.94
#1C40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1C40A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C40A8
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C40A8#FFFFFF#000000##FFFFFF
##1C40A81.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1c40a8;
/* rgb */ color: rgb(28, 64, 168);
/* oklch */ color: oklch(41.7% 0.172 264.9);
Tailwind
colors: {
  custom: {
    50: '#7274c3',
    500: '#1c40a8',
    950: '#000000',
  },
}
SCSS
$custom: #1c40a8;
$custom-light: #7274c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1c40a8",
  "rgb": {
    "r": 28,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 224.571,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41728,
    "c": 0.17207,
    "h": 264.9
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#1C40A8
secondary
#C7AB58
accent
#C03AEE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1C40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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