#4058C0#4058C0

#4058C0 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.165 H 269.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4058C0
RGBrgb(64, 88, 192)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 67%, 75%)
CMYKcmyk(66.7%, 54.2%, 0%, 24.7%)
CIE-LABlab(41.01, 25.14, -57.38)
CIE-LCHlch(41.01, 62.64, 293.66°)
OKLaboklab(50.1% -0.0008 -0.1649)
OKLCHoklch(50.1% 0.165 269.7)
XYZxyz(15.1153, 11.8738, 51.3543)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C0 #C0A840
analogous
#4098C0 #4058C0 #6840C0
triadic
#4058C0 #C04058 #58C040
tetradic
#4058C0 #C04098 #C0A840 #40C068
square
#4058C0 #C04098 #C0A840 #40C068
split-complementary
#4058C0 #C06840 #98C040
monochromatic
#212E64 #304392 #4058C0 #6E80CF #9CA8DE

Accessibility & contrast

On white

6.22
#4058C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4058C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C0
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C0#FFFFFF#000000##FFFFFF
##4058C01.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0867C4
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4058c0;
/* rgb */ color: rgb(64, 88, 192);
/* oklch */ color: oklch(50.1% 0.165 269.7);
Tailwind
colors: {
  custom: {
    50: '#8386d4',
    500: '#4058c0',
    950: '#000000',
  },
}
SCSS
$custom: #4058c0;
$custom-light: #8386d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c0",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 192
  },
  "hsl": {
    "h": 228.75,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50098,
    "c": 0.16493,
    "h": 269.7
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#4058C0
secondary
#CBC091
accent
#C04EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4058C0

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

Preview Lab → · Contrast checker → · Palette generator →

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