#4064B7#4064B7

#4064B7 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 51.9% C 0.137 H 264.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4064B7
RGBrgb(64, 100, 183)
HSLhsl(222, 48%, 48%)
HSVhsv(222, 65%, 72%)
CMYKcmyk(65%, 45.4%, 0%, 28.2%)
CIE-LABlab(43.69, 14.23, -47.83)
CIE-LCHlch(43.69, 49.90, 286.56°)
OKLaboklab(51.94% -0.0132 -0.1367)
OKLCHoklch(51.94% 0.137 264.5)
XYZxyz(15.2158, 13.6218, 46.6180)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064B7 #B79340
analogous
#409FB7 #4064B7 #5740B7
triadic
#4064B7 #B74064 #64B740
tetradic
#4064B7 #B7409F #B79340 #40B757
square
#4064B7 #B7409F #B79340 #40B757
split-complementary
#4064B7 #B75740 #9FB740
monochromatic
#20325C #304B8A #4064B7 #6987CB #97ABDB

Accessibility & contrast

On white

5.64
#4064B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4064B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064B7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064B7#FFFFFF#000000##FFFFFF
##4064B71.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#2762B5
Tritanopia (blue-blind)
#007784
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4064b7;
/* rgb */ color: rgb(64, 100, 183);
/* oklch */ color: oklch(51.9% 0.137 264.5);
Tailwind
colors: {
  custom: {
    50: '#818fcd',
    500: '#4064b7',
    950: '#000000',
  },
}
SCSS
$custom: #4064b7;
$custom-light: #818fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4064b7",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 183
  },
  "hsl": {
    "h": 221.849,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51939,
    "c": 0.13732,
    "h": 264.5
  },
  "luminance": 0.13623
}

Semantic roles & 50–950 ramp

primary
#4064B7
secondary
#C6B58D
accent
#AF50D8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4064B7

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

Preview Lab → · Contrast checker → · Palette generator →

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