#4062DB#4062DB

#4062DB is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.1% C 0.189 H 267.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4062DB
RGBrgb(64, 98, 219)
HSLhsl(227, 68%, 55%)
HSVhsv(227, 71%, 86%)
CMYKcmyk(70.8%, 55.3%, 0%, 14.1%)
CIE-LABlab(45.55, 28.40, -65.56)
CIE-LCHlch(45.55, 71.45, 293.42°)
OKLaboklab(54.12% -0.0076 -0.1889)
OKLCHoklch(54.12% 0.189 267.7)
XYZxyz(19.2638, 14.9378, 68.8722)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062DB #DBB940
analogous
#40AFDB #4062DB #6C40DB
triadic
#4062DB #DB4062 #62DB40
tetradic
#4062DB #DB40AF #DBB940 #40DB6C
square
#4062DB #DB40AF #DBB940 #40DB6C
split-complementary
#4062DB #DB6C40 #AFDB40
monochromatic
#193287 #2344BB #4062DB #738CE5 #A7B7EE

Accessibility & contrast

On white

5.27
#4062DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4062DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062DB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062DB#FFFFFF#000000##FFFFFF
##4062DB1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4062db;
/* rgb */ color: rgb(64, 98, 219);
/* oklch */ color: oklch(54.1% 0.189 267.7);
Tailwind
colors: {
  custom: {
    50: '#888ee7',
    500: '#4062db',
    950: '#000000',
  },
}
SCSS
$custom: #4062db;
$custom-light: #888ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#4062db",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 226.839,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54119,
    "c": 0.18902,
    "h": 267.7
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#4062DB
secondary
#DCCE9B
accent
#C53DEB
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4062DB

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

Preview Lab → · Contrast checker → · Palette generator →

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