#4065D3#4065D3

#4065D3 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.1% C 0.175 H 266.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4065D3
RGBrgb(64, 101, 211)
HSLhsl(225, 63%, 54%)
HSVhsv(225, 70%, 83%)
CMYKcmyk(69.7%, 52.1%, 0%, 17.3%)
CIE-LABlab(45.77, 23.63, -60.65)
CIE-LCHlch(45.77, 65.09, 291.29°)
OKLaboklab(54.11% -0.0106 -0.1743)
OKLCHoklch(54.11% 0.175 266.5)
XYZxyz(18.5218, 15.0986, 63.5536)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065D3 #D3AE40
analogous
#40AFD3 #4065D3 #6540D3
triadic
#4065D3 #D34065 #65D340
tetradic
#4065D3 #D340AF #D3AE40 #40D365
square
#4065D3 #D340AF #D3AE40 #40D365
split-complementary
#4065D3 #D36540 #AFD340
monochromatic
#1D357C #284AAE #4065D3 #728DDE #A3B5EA

Accessibility & contrast

On white

5.22
#4065D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4065D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065D3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065D3#FFFFFF#000000##FFFFFF
##4065D31.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4065d3;
/* rgb */ color: rgb(64, 101, 211);
/* oklch */ color: oklch(54.1% 0.175 266.5);
Tailwind
colors: {
  custom: {
    50: '#8690e1',
    500: '#4065d3',
    950: '#000000',
  },
}
SCSS
$custom: #4065d3;
$custom-light: #8690e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4065d3",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 211
  },
  "hsl": {
    "h": 224.898,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54107,
    "c": 0.17467,
    "h": 266.5
  },
  "luminance": 0.151
}

Semantic roles & 50–950 ramp

primary
#4065D3
secondary
#D7C798
accent
#BC42E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #4065D3

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

Preview Lab → · Contrast checker → · Palette generator →

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