#4158B0#4158B0

#4158B0 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.142 H 269.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#4158B0
RGBrgb(65, 88, 176)
HSLhsl(228, 46%, 47%)
HSVhsv(228, 63%, 69%)
CMYKcmyk(63.1%, 50%, 0%, 31%)
CIE-LABlab(39.98, 19.62, -49.68)
CIE-LCHlch(39.98, 53.41, 291.55°)
OKLaboklab(48.98% -0.0012 -0.1422)
OKLCHoklch(48.98% 0.142 269.5)
XYZxyz(13.5035, 11.2367, 42.5232)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158B0 #B09941
analogous
#418FB0 #4158B0 #6241B0
triadic
#4158B0 #B04158 #58B041
tetradic
#4158B0 #B0418F #B09941 #41B062
square
#4158B0 #B0418F #B09941 #41B062
split-complementary
#4158B0 #B06241 #8FB041
monochromatic
#202B57 #304283 #4158B0 #677BC7 #94A2D7

Accessibility & contrast

On white

6.47
#4158B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#4158B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158B0
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158B0#FFFFFF#000000##FFFFFF
##4158B01.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B3
Deuteranopia (green-blind)
#0E59AE
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4158b0;
/* rgb */ color: rgb(65, 88, 176);
/* oklch */ color: oklch(49.0% 0.142 269.5);
Tailwind
colors: {
  custom: {
    50: '#8186c8',
    500: '#4158b0',
    950: '#000000',
  },
}
SCSS
$custom: #4158b0;
$custom-light: #8186c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4158b0",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 176
  },
  "hsl": {
    "h": 227.568,
    "s": 46.058,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4898,
    "c": 0.14225,
    "h": 269.5
  },
  "luminance": 0.11238
}

Semantic roles & 50–950 ramp

primary
#4158B0
secondary
#C3B78A
accent
#BA52D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4158B0

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

Preview Lab → · Contrast checker → · Palette generator →

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