#4065D2#4065D2

#4065D2 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.0% C 0.173 H 266.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4065D2
RGBrgb(64, 101, 210)
HSLhsl(225, 62%, 54%)
HSVhsv(225, 70%, 82%)
CMYKcmyk(69.5%, 51.9%, 0%, 17.6%)
CIE-LABlab(45.70, 23.28, -60.18)
CIE-LCHlch(45.70, 64.53, 291.14°)
OKLaboklab(54.03% -0.0107 -0.173)
OKLCHoklch(54.03% 0.173 266.5)
XYZxyz(18.3968, 15.0486, 62.8954)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065D2 #D2AD40
analogous
#40AED2 #4065D2 #6440D2
triadic
#4065D2 #D24065 #65D240
tetradic
#4065D2 #D240AE #D2AD40 #40D264
square
#4065D2 #D240AE #D2AD40 #40D264
split-complementary
#4065D2 #D26440 #AED240
monochromatic
#1D357B #294AAC #4065D2 #728DDE #A3B5E9

Accessibility & contrast

On white

5.24
#4065D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4065D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065D2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065D2#FFFFFF#000000##FFFFFF
##4065D21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E73D6
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4065d2;
/* rgb */ color: rgb(64, 101, 210);
/* oklch */ color: oklch(54.0% 0.173 266.5);
Tailwind
colors: {
  custom: {
    50: '#8690e0',
    500: '#4065d2',
    950: '#000000',
  },
}
SCSS
$custom: #4065d2;
$custom-light: #8690e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4065d2",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 210
  },
  "hsl": {
    "h": 224.795,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54034,
    "c": 0.17333,
    "h": 266.5
  },
  "luminance": 0.1505
}

Semantic roles & 50–950 ramp

primary
#4065D2
secondary
#D6C698
accent
#BC43E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4065D2

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

Preview Lab → · Contrast checker → · Palette generator →

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