#4058C7#4058C7

#4058C7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.174 H 269.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4058C7
RGBrgb(64, 88, 199)
HSLhsl(229, 55%, 52%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(67.8%, 55.8%, 0%, 22%)
CIE-LABlab(41.52, 27.63, -60.63)
CIE-LCHlch(41.52, 66.63, 294.50°)
OKLaboklab(50.64% -0.0004 -0.1745)
OKLCHoklch(50.64% 0.174 269.9)
XYZxyz(15.9094, 12.1914, 55.5365)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C7 #C7AF40
analogous
#409CC7 #4058C7 #6C40C7
triadic
#4058C7 #C74058 #58C740
tetradic
#4058C7 #C7409C #C7AF40 #40C76C
square
#4058C7 #C7409C #C7AF40 #40C76C
split-complementary
#4058C7 #C76C40 #9CC740
monochromatic
#202E6D #2E419C #4058C7 #6F81D5 #9FABE3

Accessibility & contrast

On white

6.11
#4058C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4058C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C7#FFFFFF#000000##FFFFFF
##4058C71.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4058c7;
/* rgb */ color: rgb(64, 88, 199);
/* oklch */ color: oklch(50.6% 0.174 269.9);
Tailwind
colors: {
  custom: {
    50: '#8486d9',
    500: '#4058c7',
    950: '#000000',
  },
}
SCSS
$custom: #4058c7;
$custom-light: #8486d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c7",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 199
  },
  "hsl": {
    "h": 229.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50636,
    "c": 0.17449,
    "h": 269.9
  },
  "luminance": 0.12193
}

Semantic roles & 50–950 ramp

primary
#4058C7
secondary
#CFC594
accent
#C44ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4058C7

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

Preview Lab → · Contrast checker → · Palette generator →

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