#4064A2#4064A2

#4064A2 is a mid, moderate blue. Relative luminance 0.128; OKLCH L 50.6% C 0.108 H 260.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4064A2
RGBrgb(64, 100, 162)
HSLhsl(218, 43%, 44%)
HSVhsv(218, 60%, 64%)
CMYKcmyk(60.5%, 38.3%, 0%, 36.5%)
CIE-LABlab(42.48, 6.81, -37.41)
CIE-LCHlch(42.48, 38.03, 280.31°)
OKLaboklab(50.62% -0.0175 -0.1061)
OKLCHoklch(50.62% 0.108 260.6)
XYZxyz(13.1908, 12.8118, 35.9532)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064A2 #A27E40
analogous
#4095A2 #4064A2 #4D40A2
triadic
#4064A2 #A24064 #64A240
tetradic
#4064A2 #A24095 #A27E40 #40A24D
square
#4064A2 #A24095 #A27E40 #40A24D
split-complementary
#4064A2 #A24D40 #95A240
monochromatic
#1D2E4A #2F4976 #4064A2 #5F83C0 #8BA5D1

Accessibility & contrast

On white

5.89
#4064A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4064A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064A2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064A2#FFFFFF#000000##FFFFFF
##4064A21.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#3D60A1
Tritanopia (blue-blind)
#00727B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4064a2;
/* rgb */ color: rgb(64, 100, 162);
/* oklch */ color: oklch(50.6% 0.108 260.6);
Tailwind
colors: {
  custom: {
    50: '#7d8fbe',
    500: '#4064a2',
    950: '#000000',
  },
}
SCSS
$custom: #4064a2;
$custom-light: #7d8fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4064a2",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 162
  },
  "hsl": {
    "h": 217.959,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50616,
    "c": 0.10754,
    "h": 260.6
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

primary
#4064A2
secondary
#BCA782
accent
#A555D3
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #4064A2

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

Preview Lab → · Contrast checker → · Palette generator →

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