#4065B2#4065B2

#4065B2 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 51.8% C 0.129 H 263.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4065B2
RGBrgb(64, 101, 178)
HSLhsl(221, 47%, 47%)
HSVhsv(221, 64%, 70%)
CMYKcmyk(64%, 43.3%, 0%, 30.2%)
CIE-LABlab(43.67, 11.81, -44.94)
CIE-LCHlch(43.67, 46.46, 284.72°)
OKLaboklab(51.83% -0.0151 -0.1282)
OKLCHoklch(51.83% 0.129 263.3)
XYZxyz(14.8011, 13.6103, 43.9579)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065B2 #B28D40
analogous
#409EB2 #4065B2 #5440B2
triadic
#4065B2 #B24065 #65B240
tetradic
#4065B2 #B2409E #B28D40 #40B254
square
#4065B2 #B2409E #B28D40 #40B254
split-complementary
#4065B2 #B25440 #9EB240
monochromatic
#203258 #304B85 #4065B2 #6787C8 #94AAD8

Accessibility & contrast

On white

5.64
#4065B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4065B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065B2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065B2#FFFFFF#000000##FFFFFF
##4065B21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#007783
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4065b2;
/* rgb */ color: rgb(64, 101, 178);
/* oklch */ color: oklch(51.8% 0.129 263.3);
Tailwind
colors: {
  custom: {
    50: '#8090c9',
    500: '#4065b2',
    950: '#000000',
  },
}
SCSS
$custom: #4065b2;
$custom-light: #8090c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4065b2",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 178
  },
  "hsl": {
    "h": 220.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5183,
    "c": 0.12905,
    "h": 263.3
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#4065B2
secondary
#C4B18A
accent
#AB51D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4065B2

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

Preview Lab → · Contrast checker → · Palette generator →

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