#4064C1#4064C1

#4064C1 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 52.6% C 0.151 H 265.6°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#4064C1
RGBrgb(64, 100, 193)
HSLhsl(223, 51%, 50%)
HSVhsv(223, 67%, 76%)
CMYKcmyk(66.8%, 48.2%, 0%, 24.3%)
CIE-LABlab(44.31, 17.80, -52.65)
CIE-LCHlch(44.31, 55.58, 288.69°)
OKLaboklab(52.62% -0.0117 -0.1508)
OKLCHoklch(52.62% 0.151 265.6)
XYZxyz(16.2938, 14.0530, 52.2956)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064C1 #C19D40
analogous
#40A4C1 #4064C1 #5C40C1
triadic
#4064C1 #C14064 #64C140
tetradic
#4064C1 #C140A4 #C19D40 #40C15C
square
#4064C1 #C140A4 #C19D40 #40C15C
split-complementary
#4064C1 #C15C40 #A4C140
monochromatic
#213466 #304C94 #4064C1 #6E89D0 #9CAFDF

Accessibility & contrast

On white

5.51
#4064C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#4064C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064C1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064C1#FFFFFF#000000##FFFFFF
##4064C11.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336FC4
Deuteranopia (green-blind)
#1463BF
Tritanopia (blue-blind)
#007A89
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4064c1;
/* rgb */ color: rgb(64, 100, 193);
/* oklch */ color: oklch(52.6% 0.151 265.6);
Tailwind
colors: {
  custom: {
    50: '#838fd4',
    500: '#4064c1',
    950: '#000000',
  },
}
SCSS
$custom: #4064c1;
$custom-light: #838fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4064c1",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 193
  },
  "hsl": {
    "h": 223.256,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52617,
    "c": 0.15128,
    "h": 265.6
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#4064C1
secondary
#CBBB92
accent
#B34DDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4064C1

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

Preview Lab → · Contrast checker → · Palette generator →

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