#4065C5#4065C5

#4065C5 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.1% C 0.156 H 265.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4065C5
RGBrgb(64, 101, 197)
HSLhsl(223, 53%, 51%)
HSVhsv(223, 68%, 77%)
CMYKcmyk(67.5%, 48.7%, 0%, 22.7%)
CIE-LABlab(44.84, 18.60, -54.11)
CIE-LCHlch(44.84, 57.21, 288.98°)
OKLaboklab(53.1% -0.0121 -0.1551)
OKLCHoklch(53.1% 0.156 265.5)
XYZxyz(16.8426, 14.4269, 54.7096)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065C5 #C5A040
analogous
#40A7C5 #4065C5 #5D40C5
triadic
#4065C5 #C54065 #65C540
tetradic
#4065C5 #C540A7 #C5A040 #40C55D
square
#4065C5 #C540A7 #C5A040 #40C55D
split-complementary
#4065C5 #C55D40 #A7C540
monochromatic
#20356A #2F4C99 #4065C5 #6F8BD3 #9EB1E2

Accessibility & contrast

On white

5.40
#4065C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#4065C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065C5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065C5#FFFFFF#000000##FFFFFF
##4065C51.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3171C9
Deuteranopia (green-blind)
#0C64C3
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4065c5;
/* rgb */ color: rgb(64, 101, 197);
/* oklch */ color: oklch(53.1% 0.156 265.5);
Tailwind
colors: {
  custom: {
    50: '#8390d7',
    500: '#4065c5',
    950: '#000000',
  },
}
SCSS
$custom: #4065c5;
$custom-light: #8390d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4065c5",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 197
  },
  "hsl": {
    "h": 223.308,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53104,
    "c": 0.15558,
    "h": 265.5
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#4065C5
secondary
#CEBD93
accent
#B44BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4065C5

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

Preview Lab → · Contrast checker → · Palette generator →

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