#4065CB#4065CB

#4065CB is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.5% C 0.164 H 266.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#4065CB
RGBrgb(64, 101, 203)
HSLhsl(224, 57%, 52%)
HSVhsv(224, 68%, 80%)
CMYKcmyk(68.5%, 50.2%, 0%, 20.4%)
CIE-LABlab(45.23, 20.76, -56.93)
CIE-LCHlch(45.23, 60.60, 290.03°)
OKLaboklab(53.53% -0.0114 -0.1634)
OKLCHoklch(53.53% 0.164 266)
XYZxyz(17.5438, 14.7074, 58.4026)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065CB #CBA640
analogous
#40AACB #4065CB #6140CB
triadic
#4065CB #CB4065 #65CB40
tetradic
#4065CB #CB40AA #CBA640 #40CB61
square
#4065CB #CB40AA #CBA640 #40CB61
split-complementary
#4065CB #CB6140 #AACB40
monochromatic
#1F3572 #2C4BA2 #4065CB #708CD8 #A0B3E5

Accessibility & contrast

On white

5.33
#4065CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#4065CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065CB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065CB#FFFFFF#000000##FFFFFF
##4065CB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2972CF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#007D8E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4065cb;
/* rgb */ color: rgb(64, 101, 203);
/* oklch */ color: oklch(53.5% 0.164 266.0);
Tailwind
colors: {
  custom: {
    50: '#8590db',
    500: '#4065cb',
    950: '#000000',
  },
}
SCSS
$custom: #4065cb;
$custom-light: #8590db;
$custom-dark: #000000;
JSON
{
  "hex": "#4065cb",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 203
  },
  "hsl": {
    "h": 224.029,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53527,
    "c": 0.16382,
    "h": 266
  },
  "luminance": 0.14709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4065CB

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

Preview Lab → · Contrast checker → · Palette generator →

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