#4060FF#4060FF

#4060FF is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.7% C 0.237 H 268.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4060FF
RGBrgb(64, 96, 255)
HSLhsl(230, 100%, 63%)
HSVhsv(230, 75%, 100%)
CMYKcmyk(74.9%, 62.4%, 0%, 0%)
CIE-LABlab(47.85, 42.32, -82.05)
CIE-LCHlch(47.85, 92.32, 297.29°)
OKLaboklab(56.69% -0.006 -0.2373)
OKLCHoklch(56.69% 0.237 268.6)
XYZxyz(24.3410, 16.6730, 96.5237)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060FF #FFDF40
analogous
#40BFFF #4060FF #8040FF
triadic
#4060FF #FF4060 #60FF40
tetradic
#4060FF #FF40BF #FFDF40 #40FF80
square
#4060FF #FF40BF #FFDF40 #40FF80
split-complementary
#4060FF #FF8040 #BFFF40
monochromatic
#0021C5 #032DFF #4060FF #7D93FF #BAC6FF

Accessibility & contrast

On white

4.84
#4060FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4060FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060FF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060FF#FFFFFF#000000##FFFFFF
##4060FF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0069FC
Tritanopia (blue-blind)
#008AA7
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4060ff;
/* rgb */ color: rgb(64, 96, 255);
/* oklch */ color: oklch(56.7% 0.237 268.6);
Tailwind
colors: {
  custom: {
    50: '#908dff',
    500: '#4060ff',
    950: '#000000',
  },
}
SCSS
$custom: #4060ff;
$custom-light: #908dff;
$custom-dark: #000000;
JSON
{
  "hex": "#4060ff",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 255
  },
  "hsl": {
    "h": 229.948,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.23735,
    "h": 268.6
  },
  "luminance": 0.16676
}

Semantic roles & 50–950 ramp

primary
#4060FF
secondary
#F0E4AB
accent
#BF00E6
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C18
muted
#7E7D86

Preview Lab

Preview with #4060FF

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

Preview Lab → · Contrast checker → · Palette generator →

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