#4059CA#4059CA

#4059CA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.1% C 0.177 H 269.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#4059CA
RGBrgb(64, 89, 202)
HSLhsl(229, 57%, 52%)
HSVhsv(229, 68%, 79%)
CMYKcmyk(68.3%, 55.9%, 0%, 20.8%)
CIE-LABlab(42.00, 28.06, -61.59)
CIE-LCHlch(42.00, 67.68, 294.49°)
OKLaboklab(51.06% -0.0011 -0.1773)
OKLCHoklch(51.06% 0.177 269.6)
XYZxyz(16.3438, 12.4974, 57.4166)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CA #CAB140
analogous
#409ECA #4059CA #6C40CA
triadic
#4059CA #CA4059 #59CA40
tetradic
#4059CA #CA409E #CAB140 #40CA6C
square
#4059CA #CA409E #CAB140 #40CA6C
split-complementary
#4059CA #CA6C40 #9ECA40
monochromatic
#1F2E70 #2C41A0 #4059CA #7083D7 #A0ACE5

Accessibility & contrast

On white

6.00
#4059CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4059CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CA#FFFFFF#000000##FFFFFF
##4059CA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4059ca;
/* rgb */ color: rgb(64, 89, 202);
/* oklch */ color: oklch(51.1% 0.177 269.6);
Tailwind
colors: {
  custom: {
    50: '#8587db',
    500: '#4059ca',
    950: '#000000',
  },
}
SCSS
$custom: #4059ca;
$custom-light: #8587db;
$custom-dark: #000000;
JSON
{
  "hex": "#4059ca",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 202
  },
  "hsl": {
    "h": 229.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.1773,
    "h": 269.6
  },
  "luminance": 0.12499
}

Semantic roles & 50–950 ramp

primary
#4059CA
secondary
#D1C695
accent
#C448E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4059CA

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

Preview Lab → · Contrast checker → · Palette generator →

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