#4064DB#4064DB

#4064DB is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.5% C 0.187 H 267.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4064DB
RGBrgb(64, 100, 219)
HSLhsl(226, 68%, 55%)
HSVhsv(226, 71%, 86%)
CMYKcmyk(70.8%, 54.3%, 0%, 14.1%)
CIE-LABlab(46.07, 27.14, -64.73)
CIE-LCHlch(46.07, 70.18, 292.75°)
OKLaboklab(54.51% -0.0091 -0.1864)
OKLCHoklch(54.51% 0.187 267.2)
XYZxyz(19.4533, 15.3168, 68.9353)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064DB #DBB740
analogous
#40B1DB #4064DB #6A40DB
triadic
#4064DB #DB4064 #64DB40
tetradic
#4064DB #DB40B1 #DBB740 #40DB6A
square
#4064DB #DB40B1 #DBB740 #40DB6A
split-complementary
#4064DB #DB6A40 #B1DB40
monochromatic
#193387 #2346BB #4064DB #738EE5 #A7B8EE

Accessibility & contrast

On white

5.17
#4064DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4064DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064DB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064DB#FFFFFF#000000##FFFFFF
##4064DB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#008196
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4064db;
/* rgb */ color: rgb(64, 100, 219);
/* oklch */ color: oklch(54.5% 0.187 267.2);
Tailwind
colors: {
  custom: {
    50: '#888fe7',
    500: '#4064db',
    950: '#000000',
  },
}
SCSS
$custom: #4064db;
$custom-light: #888fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#4064db",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 219
  },
  "hsl": {
    "h": 226.065,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54508,
    "c": 0.18659,
    "h": 267.2
  },
  "luminance": 0.15319
}

Semantic roles & 50–950 ramp

primary
#4064DB
secondary
#DCCD9B
accent
#C33DEB
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4064DB

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

Preview Lab → · Contrast checker → · Palette generator →

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