#4065C8#4065C8

#4065C8 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.3% C 0.160 H 265.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#4065C8
RGBrgb(64, 101, 200)
HSLhsl(224, 55%, 52%)
HSVhsv(224, 68%, 78%)
CMYKcmyk(68%, 49.5%, 0%, 21.6%)
CIE-LABlab(45.03, 19.68, -55.52)
CIE-LCHlch(45.03, 58.91, 289.52°)
OKLaboklab(53.31% -0.0117 -0.1593)
OKLCHoklch(53.31% 0.16 265.8)
XYZxyz(17.1897, 14.5658, 56.5380)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065C8 #C8A340
analogous
#40A9C8 #4065C8 #5F40C8
triadic
#4065C8 #C84065 #65C840
tetradic
#4065C8 #C840A9 #C8A340 #40C85F
square
#4065C8 #C840A9 #C8A340 #40C85F
split-complementary
#4065C8 #C85F40 #A9C840
monochromatic
#20356E #2D4C9D #4065C8 #708BD6 #9FB2E3

Accessibility & contrast

On white

5.37
#4065C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#4065C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065C8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065C8#FFFFFF#000000##FFFFFF
##4065C81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D71CC
Deuteranopia (green-blind)
#0065C6
Tritanopia (blue-blind)
#007C8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4065c8;
/* rgb */ color: rgb(64, 101, 200);
/* oklch */ color: oklch(53.3% 0.160 265.8);
Tailwind
colors: {
  custom: {
    50: '#8490d9',
    500: '#4065c8',
    950: '#000000',
  },
}
SCSS
$custom: #4065c8;
$custom-light: #8490d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4065c8",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 200
  },
  "hsl": {
    "h": 223.676,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53314,
    "c": 0.15971,
    "h": 265.8
  },
  "luminance": 0.14567
}

Semantic roles & 50–950 ramp

primary
#4065C8
secondary
#D0C094
accent
#B649DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4065C8

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

Preview Lab → · Contrast checker → · Palette generator →

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