#4062B2#4062B2

#4062B2 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.2% C 0.133 H 264.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#4062B2
RGBrgb(64, 98, 178)
HSLhsl(222, 47%, 47%)
HSVhsv(222, 64%, 70%)
CMYKcmyk(64%, 44.9%, 0%, 30.2%)
CIE-LABlab(42.82, 13.72, -46.29)
CIE-LCHlch(42.82, 48.28, 286.51°)
OKLaboklab(51.18% -0.012 -0.1322)
OKLCHoklch(51.18% 0.133 264.8)
XYZxyz(14.5151, 13.0384, 43.8626)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062B2 #B29040
analogous
#409BB2 #4062B2 #5740B2
triadic
#4062B2 #B24062 #62B240
tetradic
#4062B2 #B2409B #B29040 #40B257
square
#4062B2 #B2409B #B29040 #40B257
split-complementary
#4062B2 #B25740 #9BB240
monochromatic
#203058 #304985 #4062B2 #6784C8 #94A8D8

Accessibility & contrast

On white

5.82
#4062B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#4062B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062B2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062B2#FFFFFF#000000##FFFFFF
##4062B21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#2960B0
Tritanopia (blue-blind)
#007481
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4062b2;
/* rgb */ color: rgb(64, 98, 178);
/* oklch */ color: oklch(51.2% 0.133 264.8);
Tailwind
colors: {
  custom: {
    50: '#808ec9',
    500: '#4062b2',
    950: '#000000',
  },
}
SCSS
$custom: #4062b2;
$custom-light: #808ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4062b2",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 222.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51178,
    "c": 0.13273,
    "h": 264.8
  },
  "luminance": 0.1304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4062B2

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

Preview Lab → · Contrast checker → · Palette generator →

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