#405196#405196

#405196 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.6% C 0.114 H 270.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#405196
RGBrgb(64, 81, 150)
HSLhsl(228, 40%, 42%)
HSVhsv(228, 57%, 59%)
CMYKcmyk(57.3%, 46%, 0%, 41.2%)
CIE-LABlab(36.32, 14.85, -40.02)
CIE-LCHlch(36.32, 42.69, 290.35°)
OKLaboklab(45.65% 0.0018 -0.114)
OKLCHoklch(45.65% 0.114 270.9)
XYZxyz(10.5600, 9.1761, 30.0629)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405196 #968540
analogous
#407C96 #405196 #5A4096
triadic
#405196 #964051 #519640
tetradic
#405196 #96407C #968540 #40965A
square
#405196 #96407C #968540 #40965A
split-complementary
#405196 #965A40 #7C9640
monochromatic
#1B2340 #2E3A6B #405196 #5A6DB9 #8593CB

Accessibility & contrast

On white

7.41
#405196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#405196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405196
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405196#FFFFFF#000000##FFFFFF
##4051961.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325999
Deuteranopia (green-blind)
#275295
Tritanopia (blue-blind)
#0C606C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405196;
/* rgb */ color: rgb(64, 81, 150);
/* oklch */ color: oklch(45.6% 0.114 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c81b5',
    500: '#405196',
    950: '#000000',
  },
}
SCSS
$custom: #405196;
$custom-light: #7c81b5;
$custom-dark: #000000;
JSON
{
  "hex": "#405196",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 150
  },
  "hsl": {
    "h": 228.14,
    "s": 40.187,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45649,
    "c": 0.11399,
    "h": 270.9
  },
  "luminance": 0.09177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405196

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

Preview Lab → · Contrast checker → · Palette generator →

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