#4065CC#4065CC

#4065CC is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.6% C 0.165 H 266.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#4065CC
RGBrgb(64, 101, 204)
HSLhsl(224, 58%, 53%)
HSVhsv(224, 69%, 80%)
CMYKcmyk(68.6%, 50.5%, 0%, 20%)
CIE-LABlab(45.30, 21.12, -57.40)
CIE-LCHlch(45.30, 61.16, 290.20°)
OKLaboklab(53.6% -0.0113 -0.1648)
OKLCHoklch(53.6% 0.165 266.1)
XYZxyz(17.6633, 14.7552, 59.0322)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065CC #CCA740
analogous
#40ABCC #4065CC #6140CC
triadic
#4065CC #CC4065 #65CC40
tetradic
#4065CC #CC40AB #CCA740 #40CC61
square
#4065CC #CC40AB #CCA740 #40CC61
split-complementary
#4065CC #CC6140 #ABCC40
monochromatic
#1F3573 #2C4BA3 #4065CC #708CD9 #A1B3E6

Accessibility & contrast

On white

5.31
#4065CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#4065CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065CC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065CC#FFFFFF#000000##FFFFFF
##4065CC1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2872D0
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4065cc;
/* rgb */ color: rgb(64, 101, 204);
/* oklch */ color: oklch(53.6% 0.165 266.1);
Tailwind
colors: {
  custom: {
    50: '#8590dc',
    500: '#4065cc',
    950: '#000000',
  },
}
SCSS
$custom: #4065cc;
$custom-light: #8590dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4065cc",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 204
  },
  "hsl": {
    "h": 224.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.16518,
    "h": 266.1
  },
  "luminance": 0.14757
}

Semantic roles & 50–950 ramp

primary
#4065CC
secondary
#D2C295
accent
#B847E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4065CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4065CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva