#4059C2#4059C2

#4059C2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.4% C 0.166 H 269.5°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#4059C2
RGBrgb(64, 89, 194)
HSLhsl(228, 52%, 51%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(67%, 54.1%, 0%, 23.9%)
CIE-LABlab(41.42, 25.21, -57.89)
CIE-LCHlch(41.42, 63.14, 293.53°)
OKLaboklab(50.45% -0.0016 -0.1664)
OKLCHoklch(50.45% 0.166 269.5)
XYZxyz(15.4210, 12.1283, 52.5568)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059C2 #C2A940
analogous
#409AC2 #4059C2 #6840C2
triadic
#4059C2 #C24059 #59C240
tetradic
#4059C2 #C2409A #C2A940 #40C268
square
#4059C2 #C2409A #C2A940 #40C268
split-complementary
#4059C2 #C26840 #9AC240
monochromatic
#212E67 #304395 #4059C2 #6E81D1 #9DAAE0

Accessibility & contrast

On white

6.13
#4059C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4059C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059C2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059C2#FFFFFF#000000##FFFFFF
##4059C21.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0868C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4059c2;
/* rgb */ color: rgb(64, 89, 194);
/* oklch */ color: oklch(50.4% 0.166 269.5);
Tailwind
colors: {
  custom: {
    50: '#8387d5',
    500: '#4059c2',
    950: '#000000',
  },
}
SCSS
$custom: #4059c2;
$custom-light: #8387d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4059c2",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 194
  },
  "hsl": {
    "h": 228.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50448,
    "c": 0.16643,
    "h": 269.5
  },
  "luminance": 0.1213
}

Semantic roles & 50–950 ramp

primary
#4059C2
secondary
#CCC192
accent
#C04DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4059C2

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

Preview Lab → · Contrast checker → · Palette generator →

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