#407BE1#407BE1

#407BE1 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.6% C 0.167 H 260.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#407BE1
RGBrgb(64, 123, 225)
HSLhsl(218, 73%, 57%)
HSVhsv(218, 72%, 88%)
CMYKcmyk(71.6%, 45.3%, 0%, 11.8%)
CIE-LABlab(52.61, 14.87, -57.56)
CIE-LCHlch(52.61, 59.45, 284.48°)
OKLaboklab(59.62% -0.0275 -0.1649)
OKLCHoklch(59.62% 0.167 260.5)
XYZxyz(22.7830, 20.6897, 74.0124)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407BE1 #E1A640
analogous
#40CCE1 #407BE1 #5540E1
triadic
#407BE1 #E1407B #7BE140
tetradic
#407BE1 #E140CC #E1A640 #40E155
square
#407BE1 #E140CC #E1A640 #40E155
split-complementary
#407BE1 #E15540 #CCE140
monochromatic
#174390 #1F5CC5 #407BE1 #75A0E9 #AAC4F2

Accessibility & contrast

On white

4.09
#407BE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#407BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #407BE1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407BE1#FFFFFF#000000##000000
##407BE11.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4685E5
Deuteranopia (green-blind)
#2477DF
Tritanopia (blue-blind)
#0093A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #407be1;
/* rgb */ color: rgb(64, 123, 225);
/* oklch */ color: oklch(59.6% 0.167 260.5);
Tailwind
colors: {
  custom: {
    50: '#88a0eb',
    500: '#407be1',
    950: '#000000',
  },
}
SCSS
$custom: #407be1;
$custom-light: #88a0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#407be1",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 225
  },
  "hsl": {
    "h": 218.012,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59618,
    "c": 0.1672,
    "h": 260.5
  },
  "luminance": 0.20692
}

Semantic roles & 50–950 ramp

primary
#407BE1
secondary
#DFC79D
accent
#AC38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #407BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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