#1C40A5#1C40A5

#1C40A5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.168 H 264.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#1C40A5
RGBrgb(28, 64, 165)
HSLhsl(224, 71%, 38%)
HSVhsv(224, 83%, 65%)
CMYKcmyk(83%, 61.2%, 0%, 35.3%)
CIE-LABlab(30.95, 26.39, -57.85)
CIE-LCHlch(30.95, 63.58, 294.52°)
OKLaboklab(41.46% -0.0152 -0.1674)
OKLCHoklch(41.46% 0.168 264.8)
XYZxyz(9.1014, 6.6292, 36.3899)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C40A5 #A5811C
analogous
#1C84A5 #1C40A5 #3D1CA5
triadic
#1C40A5 #A51C40 #40A51C
tetradic
#1C40A5 #A51C84 #A5811C #1CA53D
square
#1C40A5 #A51C84 #A5811C #1CA53D
split-complementary
#1C40A5 #A53D1C #84A51C
monochromatic
#0A173C #132C71 #1C40A5 #2554D9 #597DE3

Accessibility & contrast

On white

9.03
#1C40A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1C40A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C40A5
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C40A5#FFFFFF#000000##FFFFFF
##1C40A51.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1c40a5;
/* rgb */ color: rgb(28, 64, 165);
/* oklch */ color: oklch(41.5% 0.168 264.8);
Tailwind
colors: {
  custom: {
    50: '#7174c1',
    500: '#1c40a5',
    950: '#000000',
  },
}
SCSS
$custom: #1c40a5;
$custom-light: #7174c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1c40a5",
  "rgb": {
    "r": 28,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 224.234,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.16805,
    "h": 264.8
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#1C40A5
secondary
#C6A956
accent
#BF3AEE
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1C40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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