#4058B3#4058B3

#4058B3 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.1% C 0.147 H 269.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#4058B3
RGBrgb(64, 88, 179)
HSLhsl(227, 47%, 48%)
HSVhsv(227, 64%, 70%)
CMYKcmyk(64.2%, 50.8%, 0%, 29.8%)
CIE-LABlab(40.12, 20.51, -51.22)
CIE-LCHlch(40.12, 55.17, 291.82°)
OKLaboklab(49.14% -0.0019 -0.1468)
OKLCHoklch(49.14% 0.147 269.3)
XYZxyz(13.7380, 11.3229, 44.1006)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058B3 #B39B40
analogous
#4092B3 #4058B3 #6140B3
triadic
#4058B3 #B34058 #58B340
tetradic
#4058B3 #B34092 #B39B40 #40B361
square
#4058B3 #B34092 #B39B40 #40B361
split-complementary
#4058B3 #B36140 #92B340
monochromatic
#202C59 #304286 #4058B3 #677CC9 #94A3D9

Accessibility & contrast

On white

6.43
#4058B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4058B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058B3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058B3#FFFFFF#000000##FFFFFF
##4058B31.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B6
Deuteranopia (green-blind)
#005AB1
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4058b3;
/* rgb */ color: rgb(64, 88, 179);
/* oklch */ color: oklch(49.1% 0.147 269.3);
Tailwind
colors: {
  custom: {
    50: '#8186ca',
    500: '#4058b3',
    950: '#000000',
  },
}
SCSS
$custom: #4058b3;
$custom-light: #8186ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4058b3",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 179
  },
  "hsl": {
    "h": 227.478,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49137,
    "c": 0.14682,
    "h": 269.3
  },
  "luminance": 0.11324
}

Semantic roles & 50–950 ramp

primary
#4058B3
secondary
#C4B88A
accent
#BB51D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058B3

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

Preview Lab → · Contrast checker → · Palette generator →

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