#4062D3#4062D3

#4062D3 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.5% C 0.178 H 267.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#4062D3
RGBrgb(64, 98, 211)
HSLhsl(226, 63%, 54%)
HSVhsv(226, 70%, 83%)
CMYKcmyk(69.7%, 53.6%, 0%, 17.3%)
CIE-LABlab(44.98, 25.54, -61.92)
CIE-LCHlch(44.98, 66.98, 292.41°)
OKLaboklab(53.51% -0.0081 -0.1782)
OKLCHoklch(53.51% 0.178 267.4)
XYZxyz(18.2358, 14.5267, 63.4583)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062D3 #D3B140
analogous
#40ACD3 #4062D3 #6840D3
triadic
#4062D3 #D34062 #62D340
tetradic
#4062D3 #D340AC #D3B140 #40D368
square
#4062D3 #D340AC #D3B140 #40D368
split-complementary
#4062D3 #D36840 #ACD340
monochromatic
#1D337C #2847AE #4062D3 #728BDE #A3B4EA

Accessibility & contrast

On white

5.38
#4062D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#4062D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062D3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062D3#FFFFFF#000000##FFFFFF
##4062D31.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A71D7
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#007D91
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4062d3;
/* rgb */ color: rgb(64, 98, 211);
/* oklch */ color: oklch(53.5% 0.178 267.4);
Tailwind
colors: {
  custom: {
    50: '#868ee1',
    500: '#4062d3',
    950: '#000000',
  },
}
SCSS
$custom: #4062d3;
$custom-light: #868ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#4062d3",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 211
  },
  "hsl": {
    "h": 226.122,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5351,
    "c": 0.17834,
    "h": 267.4
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

primary
#4062D3
secondary
#D7C898
accent
#C042E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #4062D3

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

Preview Lab → · Contrast checker → · Palette generator →

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