#4062B7#4062B7

#4062B7 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.5% C 0.140 H 265.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4062B7
RGBrgb(64, 98, 183)
HSLhsl(223, 48%, 48%)
HSVhsv(223, 65%, 72%)
CMYKcmyk(65%, 46.4%, 0%, 28.2%)
CIE-LABlab(43.13, 15.50, -48.73)
CIE-LCHlch(43.13, 51.13, 287.65°)
OKLaboklab(51.51% -0.0112 -0.1393)
OKLCHoklch(51.51% 0.14 265.4)
XYZxyz(15.0263, 13.2429, 46.5548)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062B7 #B79540
analogous
#409DB7 #4062B7 #5940B7
triadic
#4062B7 #B74062 #62B740
tetradic
#4062B7 #B7409D #B79540 #40B759
square
#4062B7 #B7409D #B79540 #40B759
split-complementary
#4062B7 #B75940 #9DB740
monochromatic
#20315C #304A8A #4062B7 #6985CB #97AADB

Accessibility & contrast

On white

5.76
#4062B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4062B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062B7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062B7#FFFFFF#000000##FFFFFF
##4062B71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386CBA
Deuteranopia (green-blind)
#2261B5
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4062b7;
/* rgb */ color: rgb(64, 98, 183);
/* oklch */ color: oklch(51.5% 0.140 265.4);
Tailwind
colors: {
  custom: {
    50: '#818ecd',
    500: '#4062b7',
    950: '#000000',
  },
}
SCSS
$custom: #4062b7;
$custom-light: #818ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#4062b7",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 183
  },
  "hsl": {
    "h": 222.857,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51511,
    "c": 0.13979,
    "h": 265.4
  },
  "luminance": 0.13244
}

Semantic roles & 50–950 ramp

primary
#4062B7
secondary
#C6B68D
accent
#B150D8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4062B7

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

Preview Lab → · Contrast checker → · Palette generator →

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