#4064BC#4064BC

#4064BC is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.3% C 0.144 H 265.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4064BC
RGBrgb(64, 100, 188)
HSLhsl(223, 49%, 49%)
HSVhsv(223, 66%, 74%)
CMYKcmyk(66%, 46.8%, 0%, 26.3%)
CIE-LABlab(43.99, 16.01, -50.25)
CIE-LCHlch(43.99, 52.74, 287.67°)
OKLaboklab(52.27% -0.0124 -0.1438)
OKLCHoklch(52.27% 0.144 265.1)
XYZxyz(15.7455, 13.8337, 49.4076)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064BC #BC9840
analogous
#40A2BC #4064BC #5A40BC
triadic
#4064BC #BC4064 #64BC40
tetradic
#4064BC #BC40A2 #BC9840 #40BC5A
square
#4064BC #BC40A2 #BC9840 #40BC5A
split-complementary
#4064BC #BC5A40 #A2BC40
monochromatic
#213361 #304C8E #4064BC #6C88CD #9AADDD

Accessibility & contrast

On white

5.57
#4064BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4064BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064BC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064BC#FFFFFF#000000##FFFFFF
##4064BC1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBF
Deuteranopia (green-blind)
#1F63BA
Tritanopia (blue-blind)
#007887
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4064bc;
/* rgb */ color: rgb(64, 100, 188);
/* oklch */ color: oklch(52.3% 0.144 265.1);
Tailwind
colors: {
  custom: {
    50: '#828fd1',
    500: '#4064bc',
    950: '#000000',
  },
}
SCSS
$custom: #4064bc;
$custom-light: #828fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4064bc",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 188
  },
  "hsl": {
    "h": 222.581,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52274,
    "c": 0.14432,
    "h": 265.1
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#4064BC
secondary
#C9B88F
accent
#B14FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #4064BC

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

Preview Lab → · Contrast checker → · Palette generator →

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