#4058CD#4058CD

#4058CD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.1% C 0.183 H 269.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4058CD
RGBrgb(64, 88, 205)
HSLhsl(230, 59%, 53%)
HSVhsv(230, 69%, 80%)
CMYKcmyk(68.8%, 57.1%, 0%, 19.6%)
CIE-LABlab(41.96, 29.76, -63.37)
CIE-LCHlch(41.96, 70.01, 295.15°)
OKLaboklab(51.11% -0.0002 -0.1826)
OKLCHoklch(51.11% 0.183 269.9)
XYZxyz(16.6198, 12.4756, 59.2779)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058CD #CDB540
analogous
#409FCD #4058CD #6E40CD
triadic
#4058CD #CD4058 #58CD40
tetradic
#4058CD #CD409F #CDB540 #40CD6E
square
#4058CD #CD409F #CDB540 #40CD6E
split-complementary
#4058CD #CD6E40 #9FCD40
monochromatic
#1E2D74 #2B40A5 #4058CD #7182DA #A1ADE6

Accessibility & contrast

On white

6.01
#4058CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4058CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058CD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058CD#FFFFFF#000000##FFFFFF
##4058CD1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4058cd;
/* rgb */ color: rgb(64, 88, 205);
/* oklch */ color: oklch(51.1% 0.183 269.9);
Tailwind
colors: {
  custom: {
    50: '#8686dd',
    500: '#4058cd',
    950: '#000000',
  },
}
SCSS
$custom: #4058cd;
$custom-light: #8686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4058cd",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 229.787,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51108,
    "c": 0.18256,
    "h": 269.9
  },
  "luminance": 0.12477
}

Semantic roles & 50–950 ramp

primary
#4058CD
secondary
#D3C996
accent
#C746E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4058CD

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

Preview Lab → · Contrast checker → · Palette generator →

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