#4064CB#4064CB

#4064CB is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.3% C 0.165 H 266.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#4064CB
RGBrgb(64, 100, 203)
HSLhsl(224, 57%, 52%)
HSVhsv(224, 68%, 80%)
CMYKcmyk(68.5%, 50.7%, 0%, 20.4%)
CIE-LABlab(44.96, 21.40, -57.36)
CIE-LCHlch(44.96, 61.22, 290.45°)
OKLaboklab(53.32% -0.0105 -0.1647)
OKLCHoklch(53.32% 0.165 266.4)
XYZxyz(17.4473, 14.5144, 58.3704)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064CB #CBA740
analogous
#40AACB #4064CB #6140CB
triadic
#4064CB #CB4064 #64CB40
tetradic
#4064CB #CB40AA #CBA740 #40CB61
square
#4064CB #CB40AA #CBA740 #40CB61
split-complementary
#4064CB #CB6140 #AACB40
monochromatic
#1F3472 #2C4BA2 #4064CB #708BD8 #A0B2E5

Accessibility & contrast

On white

5.38
#4064CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#4064CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064CB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064CB#FFFFFF#000000##FFFFFF
##4064CB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#007C8E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4064cb;
/* rgb */ color: rgb(64, 100, 203);
/* oklch */ color: oklch(53.3% 0.165 266.4);
Tailwind
colors: {
  custom: {
    50: '#858fdb',
    500: '#4064cb',
    950: '#000000',
  },
}
SCSS
$custom: #4064cb;
$custom-light: #858fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4064cb",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 203
  },
  "hsl": {
    "h": 224.46,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53323,
    "c": 0.16504,
    "h": 266.4
  },
  "luminance": 0.14516
}

Semantic roles & 50–950 ramp

primary
#4064CB
secondary
#D2C295
accent
#B947E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4064CB

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

Preview Lab → · Contrast checker → · Palette generator →

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