#4065C2#4065C2

#4065C2 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 52.9% C 0.151 H 265.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#4065C2
RGBrgb(64, 101, 194)
HSLhsl(223, 52%, 51%)
HSVhsv(223, 67%, 76%)
CMYKcmyk(67%, 47.9%, 0%, 23.9%)
CIE-LABlab(44.65, 17.53, -52.68)
CIE-LCHlch(44.65, 55.52, 288.40°)
OKLaboklab(52.9% -0.0125 -0.1509)
OKLCHoklch(52.9% 0.151 265.3)
XYZxyz(16.5022, 14.2908, 52.9172)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065C2 #C29D40
analogous
#40A6C2 #4065C2 #5C40C2
triadic
#4065C2 #C24065 #65C240
tetradic
#4065C2 #C240A6 #C29D40 #40C25C
square
#4065C2 #C240A6 #C29D40 #40C25C
split-complementary
#4065C2 #C25C40 #A6C240
monochromatic
#213567 #304D95 #4065C2 #6E8AD1 #9DB0E0

Accessibility & contrast

On white

5.44
#4065C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#4065C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065C2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065C2#FFFFFF#000000##FFFFFF
##4065C21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3470C5
Deuteranopia (green-blind)
#1664C0
Tritanopia (blue-blind)
#007B8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4065c2;
/* rgb */ color: rgb(64, 101, 194);
/* oklch */ color: oklch(52.9% 0.151 265.3);
Tailwind
colors: {
  custom: {
    50: '#8390d5',
    500: '#4065c2',
    950: '#000000',
  },
}
SCSS
$custom: #4065c2;
$custom-light: #8390d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4065c2",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 194
  },
  "hsl": {
    "h": 222.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52896,
    "c": 0.15144,
    "h": 265.3
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#4065C2
secondary
#CCBB92
accent
#B34DDB
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4065C2

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

Preview Lab → · Contrast checker → · Palette generator →

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