#4058CF#4058CF

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

Color values

HEX#4058CF
RGBrgb(64, 88, 207)
HSLhsl(230, 60%, 53%)
HSVhsv(230, 69%, 81%)
CMYKcmyk(69.1%, 57.5%, 0%, 18.8%)
CIE-LABlab(42.11, 30.47, -64.28)
CIE-LCHlch(42.11, 71.14, 295.36°)
OKLaboklab(51.27% -0.0002 -0.1852)
OKLCHoklch(51.27% 0.185 269.9)
XYZxyz(16.8627, 12.5728, 60.5575)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058CF #CFB740
analogous
#409FCF #4058CF #6F40CF
triadic
#4058CF #CF4058 #58CF40
tetradic
#4058CF #CF409F #CFB740 #40CF6F
square
#4058CF #CF409F #CFB740 #40CF6F
split-complementary
#4058CF #CF6F40 #9FCF40
monochromatic
#1E2D77 #2A3FA8 #4058CF #7183DB #A2AEE8

Accessibility & contrast

On white

5.97
#4058CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4058CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058CF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058CF#FFFFFF#000000##FFFFFF
##4058CF1.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4058cf;
/* rgb */ color: rgb(64, 88, 207);
/* oklch */ color: oklch(51.3% 0.185 269.9);
Tailwind
colors: {
  custom: {
    50: '#8686df',
    500: '#4058cf',
    950: '#000000',
  },
}
SCSS
$custom: #4058cf;
$custom-light: #8686df;
$custom-dark: #000000;
JSON
{
  "hex": "#4058cf",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 229.93,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51267,
    "c": 0.18523,
    "h": 269.9
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#4058CF
secondary
#D4CA97
accent
#C845E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4058CF

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

Preview Lab → · Contrast checker → · Palette generator →

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