#407BDB#407BDB

#407BDB is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.2% C 0.159 H 259.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#407BDB
RGBrgb(64, 123, 219)
HSLhsl(217, 68%, 55%)
HSVhsv(217, 71%, 86%)
CMYKcmyk(70.8%, 43.8%, 0%, 14.1%)
CIE-LABlab(52.25, 12.71, -54.76)
CIE-LCHlch(52.25, 56.21, 283.07°)
OKLaboklab(59.23% -0.0285 -0.1567)
OKLCHoklch(59.23% 0.159 259.7)
XYZxyz(21.9789, 20.3680, 69.7772)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407BDB #DBA040
analogous
#40C9DB #407BDB #5240DB
triadic
#407BDB #DB407B #7BDB40
tetradic
#407BDB #DB40C9 #DBA040 #40DB52
square
#407BDB #DB40C9 #DBA040 #40DB52
split-complementary
#407BDB #DB5240 #C9DB40
monochromatic
#194387 #235DBB #407BDB #739FE5 #A7C2EE

Accessibility & contrast

On white

4.14
#407BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#407BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407BDB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407BDB#FFFFFF#000000##000000
##407BDB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B84DF
Deuteranopia (green-blind)
#2E76D9
Tritanopia (blue-blind)
#0091A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #407bdb;
/* rgb */ color: rgb(64, 123, 219);
/* oklch */ color: oklch(59.2% 0.159 259.7);
Tailwind
colors: {
  custom: {
    50: '#87a0e7',
    500: '#407bdb',
    950: '#000000',
  },
}
SCSS
$custom: #407bdb;
$custom-light: #87a0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#407bdb",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 217.161,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59228,
    "c": 0.15925,
    "h": 259.7
  },
  "luminance": 0.2037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #407BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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