#405ACA#405ACA

#405ACA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.176 H 269.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#405ACA
RGBrgb(64, 90, 202)
HSLhsl(229, 57%, 52%)
HSVhsv(229, 68%, 79%)
CMYKcmyk(68.3%, 55.4%, 0%, 20.8%)
CIE-LABlab(42.25, 27.42, -61.17)
CIE-LCHlch(42.25, 67.03, 294.14°)
OKLaboklab(51.26% -0.002 -0.1761)
OKLCHoklch(51.26% 0.176 269.4)
XYZxyz(16.4275, 12.6650, 57.4445)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ACA #CAB040
analogous
#409FCA #405ACA #6B40CA
triadic
#405ACA #CA405A #5ACA40
tetradic
#405ACA #CA409F #CAB040 #40CA6B
square
#405ACA #CA409F #CAB040 #40CA6B
split-complementary
#405ACA #CA6B40 #9FCA40
monochromatic
#1F2E70 #2C42A0 #405ACA #7083D7 #A0ADE5

Accessibility & contrast

On white

5.94
#405ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#405ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ACA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ACA#FFFFFF#000000##FFFFFF
##405ACA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405aca;
/* rgb */ color: rgb(64, 90, 202);
/* oklch */ color: oklch(51.3% 0.176 269.4);
Tailwind
colors: {
  custom: {
    50: '#8588db',
    500: '#405aca',
    950: '#000000',
  },
}
SCSS
$custom: #405aca;
$custom-light: #8588db;
$custom-dark: #000000;
JSON
{
  "hex": "#405aca",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 228.696,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51257,
    "c": 0.17606,
    "h": 269.4
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#405ACA
secondary
#D1C695
accent
#C348E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405ACA

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

Preview Lab → · Contrast checker → · Palette generator →

#405ACA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva