#407CDB#407CDB

#407CDB is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.4% C 0.158 H 259.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#407CDB
RGBrgb(64, 124, 219)
HSLhsl(217, 68%, 55%)
HSVhsv(217, 71%, 86%)
CMYKcmyk(70.8%, 43.4%, 0%, 14.1%)
CIE-LABlab(52.53, 12.10, -54.31)
CIE-LCHlch(52.53, 55.64, 282.56°)
OKLaboklab(59.44% -0.0294 -0.1553)
OKLCHoklch(59.44% 0.158 259.3)
XYZxyz(22.1036, 20.6174, 69.8188)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407CDB #DB9F40
analogous
#40CADB #407CDB #5140DB
triadic
#407CDB #DB407C #7CDB40
tetradic
#407CDB #DB40CA #DB9F40 #40DB51
square
#407CDB #DB40CA #DB9F40 #40DB51
split-complementary
#407CDB #DB5140 #CADB40
monochromatic
#194487 #235EBB #407CDB #739FE5 #A7C3EE

Accessibility & contrast

On white

4.10
#407CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#407CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407CDB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407CDB#FFFFFF#000000##000000
##407CDB1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D85DF
Deuteranopia (green-blind)
#3177D9
Tritanopia (blue-blind)
#0092A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407cdb;
/* rgb */ color: rgb(64, 124, 219);
/* oklch */ color: oklch(59.4% 0.158 259.3);
Tailwind
colors: {
  custom: {
    50: '#87a1e7',
    500: '#407cdb',
    950: '#000000',
  },
}
SCSS
$custom: #407cdb;
$custom-light: #87a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#407cdb",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 216.774,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59442,
    "c": 0.15811,
    "h": 259.3
  },
  "luminance": 0.2062
}

Semantic roles & 50–950 ramp

primary
#407CDB
secondary
#DCC39B
accent
#A83DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407CDB

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

Preview Lab → · Contrast checker → · Palette generator →

#407CDB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva