#4059A5#4059A5

#4059A5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.4% C 0.125 H 267.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4059A5
RGBrgb(64, 89, 165)
HSLhsl(225, 44%, 45%)
HSVhsv(225, 61%, 65%)
CMYKcmyk(61.2%, 46.1%, 0%, 35.3%)
CIE-LABlab(39.50, 14.90, -43.94)
CIE-LCHlch(39.50, 46.40, 288.73°)
OKLaboklab(48.37% -0.0047 -0.1254)
OKLCHoklch(48.37% 0.125 267.8)
XYZxyz(12.4760, 10.9503, 37.0462)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059A5 #A58C40
analogous
#408BA5 #4059A5 #5A40A5
triadic
#4059A5 #A54059 #59A540
tetradic
#4059A5 #A5408B #A58C40 #40A55A
square
#4059A5 #A5408B #A58C40 #40A55A
split-complementary
#4059A5 #A55A40 #8BA540
monochromatic
#1E294D #2F4179 #4059A5 #6179C2 #8D9ED3

Accessibility & contrast

On white

6.58
#4059A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4059A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059A5
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059A5#FFFFFF#000000##FFFFFF
##4059A51.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#2659A3
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4059a5;
/* rgb */ color: rgb(64, 89, 165);
/* oklch */ color: oklch(48.4% 0.125 267.8);
Tailwind
colors: {
  custom: {
    50: '#7e87c0',
    500: '#4059a5',
    950: '#000000',
  },
}
SCSS
$custom: #4059a5;
$custom-light: #7e87c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4059a5",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 165
  },
  "hsl": {
    "h": 225.149,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48374,
    "c": 0.12548,
    "h": 267.8
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#4059A5
secondary
#BEAF83
accent
#B454D4
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #4059A5

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

Preview Lab → · Contrast checker → · Palette generator →

#4059A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva