#4066CA#4066CA

#4066CA is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.7% C 0.161 H 265.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#4066CA
RGBrgb(64, 102, 202)
HSLhsl(223, 57%, 52%)
HSVhsv(223, 68%, 79%)
CMYKcmyk(68.3%, 49.5%, 0%, 20.8%)
CIE-LABlab(45.44, 19.76, -56.03)
CIE-LCHlch(45.44, 59.41, 289.43°)
OKLaboklab(53.66% -0.0124 -0.1607)
OKLCHoklch(53.66% 0.161 265.6)
XYZxyz(17.5227, 14.8553, 57.8096)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4066CA #CAA440
analogous
#40ABCA #4066CA #5F40CA
triadic
#4066CA #CA4066 #66CA40
tetradic
#4066CA #CA40AB #CAA440 #40CA5F
square
#4066CA #CA40AB #CAA440 #40CA5F
split-complementary
#4066CA #CA5F40 #ABCA40
monochromatic
#1F3670 #2C4CA0 #4066CA #708CD7 #A0B3E5

Accessibility & contrast

On white

5.29
#4066CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#4066CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4066CA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4066CA#FFFFFF#000000##FFFFFF
##4066CA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D72CE
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#007D8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4066ca;
/* rgb */ color: rgb(64, 102, 202);
/* oklch */ color: oklch(53.7% 0.161 265.6);
Tailwind
colors: {
  custom: {
    50: '#8491db',
    500: '#4066ca',
    950: '#000000',
  },
}
SCSS
$custom: #4066ca;
$custom-light: #8491db;
$custom-dark: #000000;
JSON
{
  "hex": "#4066ca",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 202
  },
  "hsl": {
    "h": 223.478,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53662,
    "c": 0.16122,
    "h": 265.6
  },
  "luminance": 0.14857
}

Semantic roles & 50–950 ramp

primary
#4066CA
secondary
#D1C095
accent
#B648E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #4066CA

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

Preview Lab → · Contrast checker → · Palette generator →

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