#4060D3#4060D3

#4060D3 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.1% C 0.181 H 268.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#4060D3
RGBrgb(64, 96, 211)
HSLhsl(227, 63%, 54%)
HSVhsv(227, 70%, 83%)
CMYKcmyk(69.7%, 54.5%, 0%, 17.3%)
CIE-LABlab(44.46, 26.81, -62.77)
CIE-LCHlch(44.46, 68.26, 293.13°)
OKLaboklab(53.12% -0.0064 -0.1807)
OKLCHoklch(53.12% 0.181 268)
XYZxyz(18.0510, 14.1571, 63.3967)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4060D3 #D3B340
analogous
#40AAD3 #4060D3 #6A40D3
triadic
#4060D3 #D34060 #60D340
tetradic
#4060D3 #D340AA #D3B340 #40D36A
square
#4060D3 #D340AA #D3B340 #40D36A
split-complementary
#4060D3 #D36A40 #AAD340
monochromatic
#1D317C #2845AE #4060D3 #7289DE #A3B3EA

Accessibility & contrast

On white

5.48
#4060D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#4060D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4060D3
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4060D3#FFFFFF#000000##FFFFFF
##4060D31.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D7
Deuteranopia (green-blind)
#0063D1
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4060d3;
/* rgb */ color: rgb(64, 96, 211);
/* oklch */ color: oklch(53.1% 0.181 268.0);
Tailwind
colors: {
  custom: {
    50: '#868ce1',
    500: '#4060d3',
    950: '#000000',
  },
}
SCSS
$custom: #4060d3;
$custom-light: #868ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#4060d3",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 211
  },
  "hsl": {
    "h": 226.939,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53117,
    "c": 0.18079,
    "h": 268
  },
  "luminance": 0.14159
}

Semantic roles & 50–950 ramp

primary
#4060D3
secondary
#D7C998
accent
#C242E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #4060D3

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

Preview Lab → · Contrast checker → · Palette generator →

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