#4062B3#4062B3

#4062B3 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.2% C 0.134 H 264.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#4062B3
RGBrgb(64, 98, 179)
HSLhsl(222, 47%, 48%)
HSVhsv(222, 64%, 70%)
CMYKcmyk(64.2%, 45.3%, 0%, 29.8%)
CIE-LABlab(42.88, 14.08, -46.78)
CIE-LCHlch(42.88, 48.85, 286.74°)
OKLaboklab(51.24% -0.0119 -0.1336)
OKLCHoklch(51.24% 0.134 264.9)
XYZxyz(14.6159, 13.0787, 44.3933)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062B3 #B39140
analogous
#409BB3 #4062B3 #5840B3
triadic
#4062B3 #B34062 #62B340
tetradic
#4062B3 #B3409B #B39140 #40B358
square
#4062B3 #B3409B #B39140 #40B358
split-complementary
#4062B3 #B35840 #9BB340
monochromatic
#203159 #304986 #4062B3 #6784C9 #94A9D9

Accessibility & contrast

On white

5.81
#4062B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4062B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062B3
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062B3#FFFFFF#000000##FFFFFF
##4062B31.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6BB6
Deuteranopia (green-blind)
#2860B1
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4062b3;
/* rgb */ color: rgb(64, 98, 179);
/* oklch */ color: oklch(51.2% 0.134 264.9);
Tailwind
colors: {
  custom: {
    50: '#808eca',
    500: '#4062b3',
    950: '#000000',
  },
}
SCSS
$custom: #4062b3;
$custom-light: #808eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4062b3",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 179
  },
  "hsl": {
    "h": 222.261,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51244,
    "c": 0.13415,
    "h": 264.9
  },
  "luminance": 0.1308
}

Semantic roles & 50–950 ramp

primary
#4062B3
secondary
#C4B38A
accent
#AF51D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4062B3

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

Preview Lab → · Contrast checker → · Palette generator →

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