#4058B2#4058B2

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

Color values

HEX#4058B2
RGBrgb(64, 88, 178)
HSLhsl(227, 47%, 47%)
HSVhsv(227, 64%, 70%)
CMYKcmyk(64%, 50.6%, 0%, 30.2%)
CIE-LABlab(40.05, 20.15, -50.74)
CIE-LCHlch(40.05, 54.59, 291.66°)
OKLaboklab(49.07% -0.002 -0.1454)
OKLCHoklch(49.07% 0.145 269.2)
XYZxyz(13.6372, 11.2826, 43.5699)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058B2 #B29A40
analogous
#4091B2 #4058B2 #6140B2
triadic
#4058B2 #B24058 #58B240
tetradic
#4058B2 #B24091 #B29A40 #40B261
square
#4058B2 #B24091 #B29A40 #40B261
split-complementary
#4058B2 #B26140 #91B240
monochromatic
#202B58 #304285 #4058B2 #677BC8 #94A2D8

Accessibility & contrast

On white

6.45
#4058B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4058B2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058B2#FFFFFF#000000##FFFFFF
##4058B21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#045AB0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4058b2;
/* rgb */ color: rgb(64, 88, 178);
/* oklch */ color: oklch(49.1% 0.145 269.2);
Tailwind
colors: {
  custom: {
    50: '#8086ca',
    500: '#4058b2',
    950: '#000000',
  },
}
SCSS
$custom: #4058b2;
$custom-light: #8086ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4058b2",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 227.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49065,
    "c": 0.1454,
    "h": 269.2
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4058B2

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

Preview Lab → · Contrast checker → · Palette generator →

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