#405296#405296

#405296 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.9% C 0.113 H 270.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#405296
RGBrgb(64, 82, 150)
HSLhsl(227, 40%, 42%)
HSVhsv(227, 57%, 59%)
CMYKcmyk(57.3%, 45.3%, 0%, 41.2%)
CIE-LABlab(36.60, 14.19, -39.57)
CIE-LCHlch(36.60, 42.04, 289.73°)
OKLaboklab(45.87% 0.0006 -0.1126)
OKLCHoklch(45.87% 0.113 270.3)
XYZxyz(10.6348, 9.3258, 30.0879)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405296 #968440
analogous
#407D96 #405296 #594096
triadic
#405296 #964052 #529640
tetradic
#405296 #96407D #968440 #409659
square
#405296 #96407D #968440 #409659
split-complementary
#405296 #965940 #7D9640
monochromatic
#1B2340 #2E3B6B #405296 #5A6EB9 #8594CB

Accessibility & contrast

On white

7.33
#405296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405296
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405296#FFFFFF#000000##FFFFFF
##4052961.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A99
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#0B616C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405296;
/* rgb */ color: rgb(64, 82, 150);
/* oklch */ color: oklch(45.9% 0.113 270.3);
Tailwind
colors: {
  custom: {
    50: '#7c82b5',
    500: '#405296',
    950: '#000000',
  },
}
SCSS
$custom: #405296;
$custom-light: #7c82b5;
$custom-dark: #000000;
JSON
{
  "hex": "#405296",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 150
  },
  "hsl": {
    "h": 227.442,
    "s": 40.187,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.11264,
    "h": 270.3
  },
  "luminance": 0.09327
}

Semantic roles & 50–950 ramp

primary
#405296
secondary
#B6AA7C
accent
#B758D0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #405296

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

Preview Lab → · Contrast checker → · Palette generator →

#405296 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva