#4062CB#4062CB

#4062CB is a mid, vivid blue. Relative luminance 0.141; OKLCH L 52.9% C 0.168 H 267.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#4062CB
RGBrgb(64, 98, 203)
HSLhsl(225, 57%, 52%)
HSVhsv(225, 68%, 80%)
CMYKcmyk(68.5%, 51.7%, 0%, 20.4%)
CIE-LABlab(44.43, 22.67, -58.23)
CIE-LCHlch(44.43, 62.49, 291.27°)
OKLaboklab(52.92% -0.0087 -0.1673)
OKLCHoklch(52.92% 0.168 267)
XYZxyz(17.2578, 14.1354, 58.3073)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062CB #CBA940
analogous
#40A7CB #4062CB #6440CB
triadic
#4062CB #CB4062 #62CB40
tetradic
#4062CB #CB40A7 #CBA940 #40CB64
square
#4062CB #CB40A7 #CBA940 #40CB64
split-complementary
#4062CB #CB6440 #A7CB40
monochromatic
#1F3372 #2C49A2 #4062CB #708AD8 #A0B1E5

Accessibility & contrast

On white

5.49
#4062CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#4062CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062CB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062CB#FFFFFF#000000##FFFFFF
##4062CB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70CF
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#007B8D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4062cb;
/* rgb */ color: rgb(64, 98, 203);
/* oklch */ color: oklch(52.9% 0.168 267.0);
Tailwind
colors: {
  custom: {
    50: '#858edb',
    500: '#4062cb',
    950: '#000000',
  },
}
SCSS
$custom: #4062cb;
$custom-light: #858edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4062cb",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 225.324,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52917,
    "c": 0.16752,
    "h": 267
  },
  "luminance": 0.14137
}

Semantic roles & 50–950 ramp

primary
#4062CB
secondary
#D2C395
accent
#BB47E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062CB

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

Preview Lab → · Contrast checker → · Palette generator →

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