#4064D3#4064D3

#4064D3 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.9% C 0.176 H 266.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4064D3
RGBrgb(64, 100, 211)
HSLhsl(225, 63%, 54%)
HSVhsv(225, 70%, 83%)
CMYKcmyk(69.7%, 52.6%, 0%, 17.3%)
CIE-LABlab(45.50, 24.27, -61.07)
CIE-LCHlch(45.50, 65.72, 291.67°)
OKLaboklab(53.91% -0.0097 -0.1756)
OKLCHoklch(53.91% 0.176 266.8)
XYZxyz(18.4253, 14.9056, 63.5214)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064D3 #D3AF40
analogous
#40AED3 #4064D3 #6640D3
triadic
#4064D3 #D34064 #64D340
tetradic
#4064D3 #D340AE #D3AF40 #40D366
square
#4064D3 #D340AE #D3AF40 #40D366
split-complementary
#4064D3 #D36640 #AED340
monochromatic
#1D347C #2849AE #4064D3 #728CDE #A3B5EA

Accessibility & contrast

On white

5.27
#4064D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#4064D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064D3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064D3#FFFFFF#000000##FFFFFF
##4064D31.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1773D7
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4064d3;
/* rgb */ color: rgb(64, 100, 211);
/* oklch */ color: oklch(53.9% 0.176 266.8);
Tailwind
colors: {
  custom: {
    50: '#868fe1',
    500: '#4064d3',
    950: '#000000',
  },
}
SCSS
$custom: #4064d3;
$custom-light: #868fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#4064d3",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 211
  },
  "hsl": {
    "h": 225.306,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53907,
    "c": 0.1759,
    "h": 266.8
  },
  "luminance": 0.14907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4064D3

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

Preview Lab → · Contrast checker → · Palette generator →

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