#4158AE#4158AE

#4158AE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.139 H 269.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4158AE
RGBrgb(65, 88, 174)
HSLhsl(227, 46%, 47%)
HSVhsv(227, 63%, 68%)
CMYKcmyk(62.6%, 49.4%, 0%, 31.8%)
CIE-LABlab(39.85, 18.91, -48.71)
CIE-LCHlch(39.85, 52.25, 291.22°)
OKLaboklab(48.84% -0.0014 -0.1394)
OKLCHoklch(48.84% 0.139 269.4)
XYZxyz(13.3071, 11.1581, 41.4887)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158AE #AE9741
analogous
#418FAE #4158AE #6041AE
triadic
#4158AE #AE4158 #58AE41
tetradic
#4158AE #AE418F #AE9741 #41AE60
square
#4158AE #AE418F #AE9741 #41AE60
split-complementary
#4158AE #AE6041 #8FAE41
monochromatic
#202B55 #304181 #4158AE #667AC6 #93A1D7

Accessibility & contrast

On white

6.50
#4158AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4158AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158AE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158AE#FFFFFF#000000##FFFFFF
##4158AE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B63B1
Deuteranopia (green-blind)
#1459AC
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4158ae;
/* rgb */ color: rgb(65, 88, 174);
/* oklch */ color: oklch(48.8% 0.139 269.4);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4158ae',
    950: '#000000',
  },
}
SCSS
$custom: #4158ae;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4158ae",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 174
  },
  "hsl": {
    "h": 227.339,
    "s": 45.607,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.13941,
    "h": 269.4
  },
  "luminance": 0.11159
}

Semantic roles & 50–950 ramp

primary
#4158AE
secondary
#C2B689
accent
#BA53D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4158AE

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

Preview Lab → · Contrast checker → · Palette generator →

#4158AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva