#4058D0#4058D0

#4058D0 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.187 H 270.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4058D0
RGBrgb(64, 88, 208)
HSLhsl(230, 61%, 53%)
HSVhsv(230, 69%, 82%)
CMYKcmyk(69.2%, 57.7%, 0%, 18.4%)
CIE-LABlab(42.19, 30.82, -64.73)
CIE-LCHlch(42.19, 71.70, 295.46°)
OKLaboklab(51.35% -0.0001 -0.1866)
OKLCHoklch(51.35% 0.187 270)
XYZxyz(16.9854, 12.6218, 61.2034)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058D0 #D0B840
analogous
#40A0D0 #4058D0 #7040D0
triadic
#4058D0 #D04058 #58D040
tetradic
#4058D0 #D040A0 #D0B840 #40D070
square
#4058D0 #D040A0 #D0B840 #40D070
split-complementary
#4058D0 #D07040 #A0D040
monochromatic
#1E2D78 #2A3FA9 #4058D0 #7183DC #A2AEE8

Accessibility & contrast

On white

5.96
#4058D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4058D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058D0
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058D0#FFFFFF#000000##FFFFFF
##4058D01.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4058d0;
/* rgb */ color: rgb(64, 88, 208);
/* oklch */ color: oklch(51.3% 0.187 270.0);
Tailwind
colors: {
  custom: {
    50: '#8686df',
    500: '#4058d0',
    950: '#000000',
  },
}
SCSS
$custom: #4058d0;
$custom-light: #8686df;
$custom-dark: #000000;
JSON
{
  "hex": "#4058d0",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 208
  },
  "hsl": {
    "h": 230,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51347,
    "c": 0.18656,
    "h": 270
  },
  "luminance": 0.12624
}

Semantic roles & 50–950 ramp

primary
#4058D0
secondary
#D5CB97
accent
#C944E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4058D0

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

Preview Lab → · Contrast checker → · Palette generator →

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