#4064CD#4064CD

#4064CD is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.5% C 0.168 H 266.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#4064CD
RGBrgb(64, 100, 205)
HSLhsl(225, 59%, 53%)
HSVhsv(225, 69%, 80%)
CMYKcmyk(68.8%, 51.2%, 0%, 19.6%)
CIE-LABlab(45.10, 22.11, -58.30)
CIE-LCHlch(45.10, 62.35, 290.77°)
OKLaboklab(53.47% -0.0103 -0.1675)
OKLCHoklch(53.47% 0.168 266.5)
XYZxyz(17.6871, 14.6103, 59.6337)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064CD #CDA940
analogous
#40AACD #4064CD #6340CD
triadic
#4064CD #CD4064 #64CD40
tetradic
#4064CD #CD40AA #CDA940 #40CD63
square
#4064CD #CD40AA #CDA940 #40CD63
split-complementary
#4064CD #CD6340 #AACD40
monochromatic
#1E3474 #2B4AA5 #4064CD #718BDA #A1B3E6

Accessibility & contrast

On white

5.35
#4064CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#4064CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064CD
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064CD#FFFFFF#000000##FFFFFF
##4064CD1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2371D1
Deuteranopia (green-blind)
#0065CB
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4064cd;
/* rgb */ color: rgb(64, 100, 205);
/* oklch */ color: oklch(53.5% 0.168 266.5);
Tailwind
colors: {
  custom: {
    50: '#858fdd',
    500: '#4064cd',
    950: '#000000',
  },
}
SCSS
$custom: #4064cd;
$custom-light: #858fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4064cd",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 205
  },
  "hsl": {
    "h": 224.681,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53467,
    "c": 0.16778,
    "h": 266.5
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#4064CD
secondary
#D3C396
accent
#BA46E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064CD

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

Preview Lab → · Contrast checker → · Palette generator →

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