#4065DB#4065DB

#4065DB is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.7% C 0.185 H 266.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#4065DB
RGBrgb(64, 101, 219)
HSLhsl(226, 68%, 55%)
HSVhsv(226, 71%, 86%)
CMYKcmyk(70.8%, 53.9%, 0%, 14.1%)
CIE-LABlab(46.32, 26.51, -64.30)
CIE-LCHlch(46.32, 69.55, 292.40°)
OKLaboklab(54.7% -0.0099 -0.1851)
OKLCHoklch(54.7% 0.185 266.9)
XYZxyz(19.5498, 15.5098, 68.9675)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065DB #DBB640
analogous
#40B3DB #4065DB #6840DB
triadic
#4065DB #DB4065 #65DB40
tetradic
#4065DB #DB40B3 #DBB640 #40DB68
square
#4065DB #DB40B3 #DBB640 #40DB68
split-complementary
#4065DB #DB6840 #B3DB40
monochromatic
#193487 #2347BB #4065DB #738FE5 #A7B8EE

Accessibility & contrast

On white

5.12
#4065DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#4065DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065DB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065DB#FFFFFF#000000##FFFFFF
##4065DB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#008296
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4065db;
/* rgb */ color: rgb(64, 101, 219);
/* oklch */ color: oklch(54.7% 0.185 266.9);
Tailwind
colors: {
  custom: {
    50: '#8890e7',
    500: '#4065db',
    950: '#000000',
  },
}
SCSS
$custom: #4065db;
$custom-light: #8890e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4065db",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 219
  },
  "hsl": {
    "h": 225.677,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54703,
    "c": 0.18539,
    "h": 266.9
  },
  "luminance": 0.15512
}

Semantic roles & 50–950 ramp

primary
#4065DB
secondary
#DCCC9B
accent
#C13DEB
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4065DB

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

Preview Lab → · Contrast checker → · Palette generator →

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