#4064C2#4064C2

#4064C2 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 52.7% C 0.153 H 265.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#4064C2
RGBrgb(64, 100, 194)
HSLhsl(223, 52%, 51%)
HSVhsv(223, 67%, 76%)
CMYKcmyk(67%, 48.5%, 0%, 23.9%)
CIE-LABlab(44.37, 18.16, -53.12)
CIE-LCHlch(44.37, 56.14, 288.88°)
OKLaboklab(52.69% -0.0116 -0.1522)
OKLCHoklch(52.69% 0.153 265.7)
XYZxyz(16.4057, 14.0978, 52.8850)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064C2 #C29E40
analogous
#40A5C2 #4064C2 #5D40C2
triadic
#4064C2 #C24064 #64C240
tetradic
#4064C2 #C240A5 #C29E40 #40C25D
square
#4064C2 #C240A5 #C29E40 #40C25D
split-complementary
#4064C2 #C25D40 #A5C240
monochromatic
#213467 #304C95 #4064C2 #6E8AD1 #9DAFE0

Accessibility & contrast

On white

5.50
#4064C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#4064C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064C2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064C2#FFFFFF#000000##FFFFFF
##4064C21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326FC5
Deuteranopia (green-blind)
#1163C0
Tritanopia (blue-blind)
#007A8A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4064c2;
/* rgb */ color: rgb(64, 100, 194);
/* oklch */ color: oklch(52.7% 0.153 265.7);
Tailwind
colors: {
  custom: {
    50: '#838fd5',
    500: '#4064c2',
    950: '#000000',
  },
}
SCSS
$custom: #4064c2;
$custom-light: #838fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4064c2",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 194
  },
  "hsl": {
    "h": 223.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52686,
    "c": 0.15267,
    "h": 265.7
  },
  "luminance": 0.14099
}

Semantic roles & 50–950 ramp

primary
#4064C2
secondary
#CCBC92
accent
#B44DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4064C2

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

Preview Lab → · Contrast checker → · Palette generator →

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