#4059D4#4059D4

#4059D4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.9% C 0.191 H 269.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#4059D4
RGBrgb(64, 89, 212)
HSLhsl(230, 63%, 54%)
HSVhsv(230, 70%, 83%)
CMYKcmyk(69.8%, 58%, 0%, 16.9%)
CIE-LABlab(42.74, 31.60, -66.13)
CIE-LCHlch(42.74, 73.29, 295.55°)
OKLaboklab(51.86% -0.0009 -0.1906)
OKLCHoklch(51.86% 0.191 269.7)
XYZxyz(17.5663, 12.9865, 63.8555)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059D4 #D4BB40
analogous
#40A3D4 #4059D4 #7140D4
triadic
#4059D4 #D44059 #59D440
tetradic
#4059D4 #D440A3 #D4BB40 #40D471
square
#4059D4 #D440A3 #D4BB40 #40D471
split-complementary
#4059D4 #D47140 #A3D440
monochromatic
#1C2D7D #273EAF #4059D4 #7284DF #A4B0EA

Accessibility & contrast

On white

5.84
#4059D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4059D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059D4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059D4#FFFFFF#000000##FFFFFF
##4059D41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00788E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4059d4;
/* rgb */ color: rgb(64, 89, 212);
/* oklch */ color: oklch(51.9% 0.191 269.7);
Tailwind
colors: {
  custom: {
    50: '#8787e2',
    500: '#4059d4',
    950: '#000000',
  },
}
SCSS
$custom: #4059d4;
$custom-light: #8787e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4059d4",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 212
  },
  "hsl": {
    "h": 229.865,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.19064,
    "h": 269.7
  },
  "luminance": 0.12988
}

Semantic roles & 50–950 ramp

primary
#4059D4
secondary
#D7CD98
accent
#CA42E6
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4059D4

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

Preview Lab → · Contrast checker → · Palette generator →

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