#4065E2#4065E2

#4065E2 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.2% C 0.195 H 267.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4065E2
RGBrgb(64, 101, 226)
HSLhsl(226, 74%, 57%)
HSVhsv(226, 72%, 89%)
CMYKcmyk(71.7%, 55.3%, 0%, 11.4%)
CIE-LABlab(46.82, 29.01, -67.46)
CIE-LCHlch(46.82, 73.44, 293.27°)
OKLaboklab(55.24% -0.0095 -0.1944)
OKLCHoklch(55.24% 0.195 267.2)
XYZxyz(20.4907, 15.8862, 73.9232)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065E2 #E2BD40
analogous
#40B6E2 #4065E2 #6C40E2
triadic
#4065E2 #E24065 #65E240
tetradic
#4065E2 #E240B6 #E2BD40 #40E26C
square
#4065E2 #E240B6 #E2BD40 #40E26C
split-complementary
#4065E2 #E26C40 #B6E240
monochromatic
#163292 #1E45C7 #4065E2 #7590EA #AABBF2

Accessibility & contrast

On white

5.03
#4065E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4065E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065E2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065E2#FFFFFF#000000##FFFFFF
##4065E21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#00849A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4065e2;
/* rgb */ color: rgb(64, 101, 226);
/* oklch */ color: oklch(55.2% 0.195 267.2);
Tailwind
colors: {
  custom: {
    50: '#8990ec',
    500: '#4065e2',
    950: '#000000',
  },
}
SCSS
$custom: #4065e2;
$custom-light: #8990ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4065e2",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 226
  },
  "hsl": {
    "h": 226.296,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55238,
    "c": 0.19464,
    "h": 267.2
  },
  "luminance": 0.15888
}

Semantic roles & 50–950 ramp

primary
#4065E2
secondary
#E0D19E
accent
#C638F0
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4065E2

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

Preview Lab → · Contrast checker → · Palette generator →

#4065E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva