#4060C8#4060C8

#4060C8 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.3% C 0.166 H 267.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4060C8
RGBrgb(64, 96, 200)
HSLhsl(226, 55%, 52%)
HSVhsv(226, 68%, 78%)
CMYKcmyk(68%, 52%, 0%, 21.6%)
CIE-LABlab(43.69, 22.87, -57.69)
CIE-LCHlch(43.69, 62.06, 291.63°)
OKLaboklab(52.29% -0.0073 -0.1657)
OKLCHoklch(52.29% 0.166 267.5)
XYZxyz(16.7190, 13.6242, 56.3810)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060C8 #C8A840
analogous
#40A4C8 #4060C8 #6440C8
triadic
#4060C8 #C84060 #60C840
tetradic
#4060C8 #C840A4 #C8A840 #40C864
square
#4060C8 #C840A4 #C8A840 #40C864
split-complementary
#4060C8 #C86440 #A4C840
monochromatic
#20326E #2D489D #4060C8 #7088D6 #9FAFE3

Accessibility & contrast

On white

5.64
#4060C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4060C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060C8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060C8#FFFFFF#000000##FFFFFF
##4060C81.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6ECC
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4060c8;
/* rgb */ color: rgb(64, 96, 200);
/* oklch */ color: oklch(52.3% 0.166 267.5);
Tailwind
colors: {
  custom: {
    50: '#848cd9',
    500: '#4060c8',
    950: '#000000',
  },
}
SCSS
$custom: #4060c8;
$custom-light: #848cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4060c8",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 200
  },
  "hsl": {
    "h": 225.882,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52293,
    "c": 0.1659,
    "h": 267.5
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#4060C8
secondary
#D0C294
accent
#BB49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4060C8

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

Preview Lab → · Contrast checker → · Palette generator →

#4060C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva