#4158C2#4158C2

#4158C2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.167 H 270.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#4158C2
RGBrgb(65, 88, 194)
HSLhsl(229, 51%, 51%)
HSVhsv(229, 66%, 76%)
CMYKcmyk(66.5%, 54.6%, 0%, 23.9%)
CIE-LABlab(41.21, 26.01, -58.22)
CIE-LCHlch(41.21, 63.77, 294.07°)
OKLaboklab(50.31% 0.0003 -0.1674)
OKLCHoklch(50.31% 0.167 270.1)
XYZxyz(15.4040, 11.9969, 52.5323)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C2 #C2AB41
analogous
#4198C2 #4158C2 #6A41C2
triadic
#4158C2 #C24158 #58C241
tetradic
#4158C2 #C24198 #C2AB41 #41C26A
square
#4158C2 #C24198 #C2AB41 #41C26A
split-complementary
#4158C2 #C26A41 #98C241
monochromatic
#212E67 #304296 #4158C2 #6F81D1 #9EA9E0

Accessibility & contrast

On white

6.18
#4158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4158C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C2#FFFFFF#000000##FFFFFF
##4158C21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0167C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4158c2;
/* rgb */ color: rgb(65, 88, 194);
/* oklch */ color: oklch(50.3% 0.167 270.1);
Tailwind
colors: {
  custom: {
    50: '#8486d5',
    500: '#4158c2',
    950: '#000000',
  },
}
SCSS
$custom: #4158c2;
$custom-light: #8486d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c2",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 229.302,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50305,
    "c": 0.16739,
    "h": 270.1
  },
  "luminance": 0.11998
}

Semantic roles & 50–950 ramp

primary
#4158C2
secondary
#CCC293
accent
#C24DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158C2

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

Preview Lab → · Contrast checker → · Palette generator →

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