#1640B4#1640B4

#1640B4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.189 H 264.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#1640B4
RGBrgb(22, 64, 180)
HSLhsl(224, 78%, 40%)
HSVhsv(224, 88%, 71%)
CMYKcmyk(87.8%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.10, 31.80, -64.92)
CIE-LCHlch(32.10, 72.30, 296.10°)
OKLaboklab(42.67% -0.0189 -0.1882)
OKLCHoklch(42.67% 0.189 264.3)
XYZxyz(10.3996, 7.1313, 43.9995)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1640B4 #B48A16
analogous
#168FB4 #1640B4 #3B16B4
triadic
#1640B4 #B41640 #40B416
tetradic
#1640B4 #B4168F #B48A16 #16B43B
square
#1640B4 #B4168F #B48A16 #16B43B
split-complementary
#1640B4 #B43B16 #8FB416
monochromatic
#091947 #0F2D7D #1640B4 #2356E4 #5A80EB

Accessibility & contrast

On white

8.65
#1640B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1640B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1640B4
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1640B4#FFFFFF#000000##FFFFFF
##1640B41.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1640b4;
/* rgb */ color: rgb(22, 64, 180);
/* oklch */ color: oklch(42.7% 0.189 264.3);
Tailwind
colors: {
  custom: {
    50: '#7474cc',
    500: '#1640b4',
    950: '#000000',
  },
}
SCSS
$custom: #1640b4;
$custom-light: #7474cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1640b4",
  "rgb": {
    "r": 22,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 224.051,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42673,
    "c": 0.1891,
    "h": 264.3
  },
  "luminance": 0.07133
}

Semantic roles & 50–950 ramp

primary
#1640B4
secondary
#CEAF58
accent
#C133F5
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1640B4

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

Preview Lab → · Contrast checker → · Palette generator →

#1640B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva