#4158C3#4158C3

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

Color values

HEX#4158C3
RGBrgb(65, 88, 195)
HSLhsl(229, 52%, 51%)
HSVhsv(229, 67%, 76%)
CMYKcmyk(66.7%, 54.9%, 0%, 23.5%)
CIE-LABlab(41.28, 26.36, -58.69)
CIE-LCHlch(41.28, 64.34, 294.19°)
OKLaboklab(50.38% 0.0004 -0.1688)
OKLCHoklch(50.38% 0.169 270.1)
XYZxyz(15.5167, 12.0419, 53.1258)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C3 #C3AC41
analogous
#4199C3 #4158C3 #6B41C3
triadic
#4158C3 #C34158 #58C341
tetradic
#4158C3 #C34199 #C3AC41 #41C36B
square
#4158C3 #C34199 #C3AC41 #41C36B
split-complementary
#4158C3 #C36B41 #99C341
monochromatic
#212E69 #304297 #4158C3 #7081D2 #9EAAE0

Accessibility & contrast

On white

6.16
#4158C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4158C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C3#FFFFFF#000000##FFFFFF
##4158C31.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4158c3;
/* rgb */ color: rgb(65, 88, 195);
/* oklch */ color: oklch(50.4% 0.169 270.1);
Tailwind
colors: {
  custom: {
    50: '#8486d6',
    500: '#4158c3',
    950: '#000000',
  },
}
SCSS
$custom: #4158c3;
$custom-light: #8486d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c3",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 195
  },
  "hsl": {
    "h": 229.385,
    "s": 52,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.16876,
    "h": 270.1
  },
  "luminance": 0.12043
}

Semantic roles & 50–950 ramp

primary
#4158C3
secondary
#CDC393
accent
#C24CDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158C3

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

Preview Lab → · Contrast checker → · Palette generator →

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