#4062CA#4062CA

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

Color values

HEX#4062CA
RGBrgb(64, 98, 202)
HSLhsl(225, 57%, 52%)
HSVhsv(225, 68%, 79%)
CMYKcmyk(68.3%, 51.5%, 0%, 20.8%)
CIE-LABlab(44.36, 22.31, -57.76)
CIE-LCHlch(44.36, 61.92, 291.12°)
OKLaboklab(52.84% -0.0088 -0.1659)
OKLCHoklch(52.84% 0.166 267)
XYZxyz(17.1390, 14.0879, 57.6817)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4062CA #CAA840
analogous
#40A7CA #4062CA #6340CA
triadic
#4062CA #CA4062 #62CA40
tetradic
#4062CA #CA40A7 #CAA840 #40CA63
square
#4062CA #CA40A7 #CAA840 #40CA63
split-complementary
#4062CA #CA6340 #A7CA40
monochromatic
#1F3370 #2C49A0 #4062CA #7089D7 #A0B1E5

Accessibility & contrast

On white

5.50
#4062CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#4062CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4062CA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4062CA#FFFFFF#000000##FFFFFF
##4062CA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2170CE
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#007B8C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4062ca;
/* rgb */ color: rgb(64, 98, 202);
/* oklch */ color: oklch(52.8% 0.166 267.0);
Tailwind
colors: {
  custom: {
    50: '#848edb',
    500: '#4062ca',
    950: '#000000',
  },
}
SCSS
$custom: #4062ca;
$custom-light: #848edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4062ca",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 225.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52844,
    "c": 0.16615,
    "h": 267
  },
  "luminance": 0.1409
}

Semantic roles & 50–950 ramp

primary
#4062CA
secondary
#D1C295
accent
#BA48E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4062CA

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

Preview Lab → · Contrast checker → · Palette generator →

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