#4065DF#4065DF

#4065DF is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.0% C 0.191 H 267.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4065DF
RGBrgb(64, 101, 223)
HSLhsl(226, 71%, 56%)
HSVhsv(226, 71%, 87%)
CMYKcmyk(71.3%, 54.7%, 0%, 12.5%)
CIE-LABlab(46.61, 27.94, -66.11)
CIE-LCHlch(46.61, 71.77, 292.91°)
OKLaboklab(55.01% -0.0097 -0.1904)
OKLCHoklch(55.01% 0.191 267.1)
XYZxyz(20.0827, 15.7230, 71.7742)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4065DF #DFBA40
analogous
#40B4DF #4065DF #6B40DF
triadic
#4065DF #DF4065 #65DF40
tetradic
#4065DF #DF40B4 #DFBA40 #40DF6B
square
#4065DF #DF40B4 #DFBA40 #40DF6B
split-complementary
#4065DF #DF6B40 #B4DF40
monochromatic
#18338D #2046C1 #4065DF #748FE8 #A9BAF1

Accessibility & contrast

On white

5.07
#4065DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#4065DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4065DF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4065DF#FFFFFF#000000##FFFFFF
##4065DF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#0067DD
Tritanopia (blue-blind)
#008398
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4065df;
/* rgb */ color: rgb(64, 101, 223);
/* oklch */ color: oklch(55.0% 0.191 267.1);
Tailwind
colors: {
  custom: {
    50: '#8990ea',
    500: '#4065df',
    950: '#000000',
  },
}
SCSS
$custom: #4065df;
$custom-light: #8990ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4065df",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 223
  },
  "hsl": {
    "h": 226.038,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55007,
    "c": 0.19069,
    "h": 267.1
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#4065DF
secondary
#DECF9D
accent
#C43AEE
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4065DF

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

Preview Lab → · Contrast checker → · Palette generator →

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