#4058C2#4058C2

#4058C2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.168 H 269.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#4058C2
RGBrgb(64, 88, 194)
HSLhsl(229, 52%, 51%)
HSVhsv(229, 67%, 76%)
CMYKcmyk(67%, 54.6%, 0%, 23.9%)
CIE-LABlab(41.16, 25.85, -58.31)
CIE-LCHlch(41.16, 63.79, 293.91°)
OKLaboklab(50.25% -0.0007 -0.1677)
OKLCHoklch(50.25% 0.168 269.8)
XYZxyz(15.3384, 11.9630, 52.5292)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C2 #C2AA40
analogous
#4099C2 #4058C2 #6940C2
triadic
#4058C2 #C24058 #58C240
tetradic
#4058C2 #C24099 #C2AA40 #40C269
square
#4058C2 #C24099 #C2AA40 #40C269
split-complementary
#4058C2 #C26940 #99C240
monochromatic
#212E67 #304295 #4058C2 #6E81D1 #9DA9E0

Accessibility & contrast

On white

6.19
#4058C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#4058C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C2#FFFFFF#000000##FFFFFF
##4058C21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4058c2;
/* rgb */ color: rgb(64, 88, 194);
/* oklch */ color: oklch(50.3% 0.168 269.8);
Tailwind
colors: {
  custom: {
    50: '#8386d5',
    500: '#4058c2',
    950: '#000000',
  },
}
SCSS
$custom: #4058c2;
$custom-light: #8386d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c2",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 228.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50251,
    "c": 0.16768,
    "h": 269.8
  },
  "luminance": 0.11964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4058C2

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

Preview Lab → · Contrast checker → · Palette generator →

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