#1C40B4#1C40B4

#1C40B4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.188 H 265.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#1C40B4
RGBrgb(28, 64, 180)
HSLhsl(226, 73%, 41%)
HSVhsv(226, 84%, 71%)
CMYKcmyk(84.4%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.28, 32.19, -64.64)
CIE-LCHlch(32.28, 72.21, 296.48°)
OKLaboklab(42.85% -0.0152 -0.1872)
OKLCHoklch(42.85% 0.188 265.4)
XYZxyz(10.5476, 7.2077, 44.0065)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C40B4 #B4901C
analogous
#1C8CB4 #1C40B4 #441CB4
triadic
#1C40B4 #B41C40 #40B41C
tetradic
#1C40B4 #B41C8C #B4901C #1CB444
square
#1C40B4 #B41C8C #B4901C #1CB444
split-complementary
#1C40B4 #B4441C #8CB41C
monochromatic
#0C1A4A #142D7F #1C40B4 #2F58DF #6483E7

Accessibility & contrast

On white

8.60
#1C40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1C40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C40B4
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C40B4#FFFFFF#000000##FFFFFF
##1C40B41.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1c40b4;
/* rgb */ color: rgb(28, 64, 180);
/* oklch */ color: oklch(42.8% 0.188 265.4);
Tailwind
colors: {
  custom: {
    50: '#7574cb',
    500: '#1c40b4',
    950: '#000000',
  },
}
SCSS
$custom: #1c40b4;
$custom-light: #7574cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1c40b4",
  "rgb": {
    "r": 28,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 225.789,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42848,
    "c": 0.18786,
    "h": 265.4
  },
  "luminance": 0.07209
}

Semantic roles & 50–950 ramp

primary
#1C40B4
secondary
#CCB260
accent
#C438F0
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1C40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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