#4062BE#4062BE

#4062BE is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.0% C 0.150 H 266.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4062BE
RGBrgb(64, 98, 190)
HSLhsl(224, 50%, 50%)
HSVhsv(224, 66%, 75%)
CMYKcmyk(66.3%, 48.4%, 0%, 25.5%)
CIE-LABlab(43.57, 18.01, -52.10)
CIE-LCHlch(43.57, 55.12, 289.07°)
OKLaboklab(51.99% -0.0102 -0.1492)
OKLCHoklch(51.99% 0.15 266.1)
XYZxyz(15.7731, 13.5416, 50.4878)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062BE #BE9C40
analogous
#40A1BE #4062BE #5D40BE
triadic
#4062BE #BE4062 #62BE40
tetradic
#4062BE #BE40A1 #BE9C40 #40BE5D
square
#4062BE #BE40A1 #BE9C40 #40BE5D
split-complementary
#4062BE #BE5D40 #A1BE40
monochromatic
#213362 #314A90 #4062BE #6D87CE #9BADDD

Accessibility & contrast

On white

5.66
#4062BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4062BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062BE
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062BE#FFFFFF#000000##FFFFFF
##4062BE1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316DC1
Deuteranopia (green-blind)
#1362BC
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4062be;
/* rgb */ color: rgb(64, 98, 190);
/* oklch */ color: oklch(52.0% 0.150 266.1);
Tailwind
colors: {
  custom: {
    50: '#828ed2',
    500: '#4062be',
    950: '#000000',
  },
}
SCSS
$custom: #4062be;
$custom-light: #828ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#4062be",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 190
  },
  "hsl": {
    "h": 223.81,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5199,
    "c": 0.1496,
    "h": 266.1
  },
  "luminance": 0.13543
}

Semantic roles & 50–950 ramp

primary
#4062BE
secondary
#C9BA90
accent
#B44FD9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #4062BE

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

Preview Lab → · Contrast checker → · Palette generator →

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