#4158D0#4158D0

#4158D0 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.4% C 0.186 H 270.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#4158D0
RGBrgb(65, 88, 208)
HSLhsl(230, 60%, 54%)
HSVhsv(230, 69%, 82%)
CMYKcmyk(68.8%, 57.7%, 0%, 18.4%)
CIE-LABlab(42.24, 30.96, -64.65)
CIE-LCHlch(42.24, 71.68, 295.59°)
OKLaboklab(51.4% 0.0008 -0.1863)
OKLCHoklch(51.4% 0.186 270.3)
XYZxyz(17.0510, 12.6557, 61.2065)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158D0 #D0B941
analogous
#419FD0 #4158D0 #7141D0
triadic
#4158D0 #D04158 #58D041
tetradic
#4158D0 #D0419F #D0B941 #41D071
square
#4158D0 #D0419F #D0B941 #41D071
split-complementary
#4158D0 #D07141 #9FD041
monochromatic
#1E2C79 #2A3FAA #4158D0 #7283DC #A3AEE8

Accessibility & contrast

On white

5.95
#4158D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4158D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158D0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158D0#FFFFFF#000000##FFFFFF
##4158D01.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4158d0;
/* rgb */ color: rgb(65, 88, 208);
/* oklch */ color: oklch(51.4% 0.186 270.3);
Tailwind
colors: {
  custom: {
    50: '#8786df',
    500: '#4158d0',
    950: '#000000',
  },
}
SCSS
$custom: #4158d0;
$custom-light: #8786df;
$custom-dark: #000000;
JSON
{
  "hex": "#4158d0",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 208
  },
  "hsl": {
    "h": 230.35,
    "s": 60.338,
    "l": 53.529
  },
  "oklch": {
    "l": 0.514,
    "c": 0.18628,
    "h": 270.3
  },
  "luminance": 0.12657
}

Semantic roles & 50–950 ramp

primary
#4158D0
secondary
#D5CB98
accent
#CA44E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4158D0

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

Preview Lab → · Contrast checker → · Palette generator →

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