#4158D8#4158D8

#4158D8 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.0% C 0.197 H 270.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#4158D8
RGBrgb(65, 88, 216)
HSLhsl(231, 66%, 55%)
HSVhsv(231, 70%, 85%)
CMYKcmyk(69.9%, 59.3%, 0%, 15.3%)
CIE-LABlab(42.85, 33.78, -68.24)
CIE-LCHlch(42.85, 76.14, 296.34°)
OKLaboklab(52.05% 0.0009 -0.1968)
OKLCHoklch(52.05% 0.197 270.3)
XYZxyz(18.0601, 13.0593, 66.5214)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158D8 #D8C141
analogous
#41A3D8 #4158D8 #7641D8
triadic
#4158D8 #D84158 #58D841
tetradic
#4158D8 #D841A3 #D8C141 #41D876
square
#4158D8 #D841A3 #D8C141 #41D876
split-complementary
#4158D8 #D87641 #A3D841
monochromatic
#1B2B84 #253CB6 #4158D8 #7485E2 #A7B1ED

Accessibility & contrast

On white

5.81
#4158D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#4158D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158D8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158D8#FFFFFF#000000##FFFFFF
##4158D81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00788F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4158d8;
/* rgb */ color: rgb(65, 88, 216);
/* oklch */ color: oklch(52.0% 0.197 270.3);
Tailwind
colors: {
  custom: {
    50: '#8887e5',
    500: '#4158d8',
    950: '#000000',
  },
}
SCSS
$custom: #4158d8;
$custom-light: #8887e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4158d8",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 216
  },
  "hsl": {
    "h": 230.861,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52048,
    "c": 0.19683,
    "h": 270.3
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#4158D8
secondary
#DAD09B
accent
#CF3FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4158D8

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

Preview Lab → · Contrast checker → · Palette generator →

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