#4058D3#4058D3

#4058D3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.6% C 0.191 H 270.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#4058D3
RGBrgb(64, 88, 211)
HSLhsl(230, 63%, 54%)
HSVhsv(230, 70%, 83%)
CMYKcmyk(69.7%, 58.3%, 0%, 17.3%)
CIE-LABlab(42.42, 31.88, -66.09)
CIE-LCHlch(42.42, 73.37, 295.76°)
OKLaboklab(51.59% -0.0001 -0.1905)
OKLCHoklch(51.59% 0.191 270)
XYZxyz(17.3579, 12.7709, 63.1656)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058D3 #D3BB40
analogous
#40A2D3 #4058D3 #7240D3
triadic
#4058D3 #D34058 #58D340
tetradic
#4058D3 #D340A2 #D3BB40 #40D372
square
#4058D3 #D340A2 #D3BB40 #40D372
split-complementary
#4058D3 #D37240 #A2D340
monochromatic
#1D2C7C #283EAE #4058D3 #7283DE #A3AFEA

Accessibility & contrast

On white

5.91
#4058D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4058D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058D3
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058D3#FFFFFF#000000##FFFFFF
##4058D31.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#005ED1
Tritanopia (blue-blind)
#00778D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4058d3;
/* rgb */ color: rgb(64, 88, 211);
/* oklch */ color: oklch(51.6% 0.191 270.0);
Tailwind
colors: {
  custom: {
    50: '#8786e1',
    500: '#4058d3',
    950: '#000000',
  },
}
SCSS
$custom: #4058d3;
$custom-light: #8786e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4058d3",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 211
  },
  "hsl": {
    "h": 230.204,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51589,
    "c": 0.19053,
    "h": 270
  },
  "luminance": 0.12773
}

Semantic roles & 50–950 ramp

primary
#4058D3
secondary
#D7CD98
accent
#CB42E6
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4058D3

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

Preview Lab → · Contrast checker → · Palette generator →

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