#4058C3#4058C3

#4058C3 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.169 H 269.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#4058C3
RGBrgb(64, 88, 195)
HSLhsl(229, 52%, 51%)
HSVhsv(229, 67%, 76%)
CMYKcmyk(67.2%, 54.9%, 0%, 23.5%)
CIE-LABlab(41.23, 26.21, -58.78)
CIE-LCHlch(41.23, 64.35, 294.03°)
OKLaboklab(50.33% -0.0006 -0.169)
OKLCHoklch(50.33% 0.169 269.8)
XYZxyz(15.4510, 12.0081, 53.1227)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058C3 #C3AB40
analogous
#4099C3 #4058C3 #6940C3
triadic
#4058C3 #C34058 #58C340
tetradic
#4058C3 #C34099 #C3AB40 #40C369
square
#4058C3 #C34099 #C3AB40 #40C369
split-complementary
#4058C3 #C36940 #99C340
monochromatic
#212E68 #2F4297 #4058C3 #6F81D2 #9DA9E0

Accessibility & contrast

On white

6.17
#4058C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4058C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058C3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058C3#FFFFFF#000000##FFFFFF
##4058C31.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4058c3;
/* rgb */ color: rgb(64, 88, 195);
/* oklch */ color: oklch(50.3% 0.169 269.8);
Tailwind
colors: {
  custom: {
    50: '#8486d6',
    500: '#4058c3',
    950: '#000000',
  },
}
SCSS
$custom: #4058c3;
$custom-light: #8486d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4058c3",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 195
  },
  "hsl": {
    "h": 229.008,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50327,
    "c": 0.16904,
    "h": 269.8
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#4058C3
secondary
#CCC292
accent
#C14CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4058C3

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

Preview Lab → · Contrast checker → · Palette generator →

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