#4058CA#4058CA

#4058CA is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.9% C 0.179 H 269.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#4058CA
RGBrgb(64, 88, 202)
HSLhsl(230, 57%, 52%)
HSVhsv(230, 68%, 79%)
CMYKcmyk(68.3%, 56.4%, 0%, 20.8%)
CIE-LABlab(41.74, 28.70, -62.00)
CIE-LCHlch(41.74, 68.32, 294.83°)
OKLaboklab(50.87% -0.0003 -0.1785)
OKLCHoklch(50.87% 0.179 269.9)
XYZxyz(16.2611, 12.3321, 57.3890)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058CA #CAB240
analogous
#409DCA #4058CA #6D40CA
triadic
#4058CA #CA4058 #58CA40
tetradic
#4058CA #CA409D #CAB240 #40CA6D
square
#4058CA #CA409D #CAB240 #40CA6D
split-complementary
#4058CA #CA6D40 #9DCA40
monochromatic
#1F2D70 #2C41A0 #4058CA #7082D7 #A0ACE5

Accessibility & contrast

On white

6.06
#4058CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4058CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058CA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058CA#FFFFFF#000000##FFFFFF
##4058CA1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4058ca;
/* rgb */ color: rgb(64, 88, 202);
/* oklch */ color: oklch(50.9% 0.179 269.9);
Tailwind
colors: {
  custom: {
    50: '#8586db',
    500: '#4058ca',
    950: '#000000',
  },
}
SCSS
$custom: #4058ca;
$custom-light: #8586db;
$custom-dark: #000000;
JSON
{
  "hex": "#4058ca",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 229.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50871,
    "c": 0.17854,
    "h": 269.9
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#4058CA
secondary
#D1C795
accent
#C548E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4058CA

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

Preview Lab → · Contrast checker → · Palette generator →

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