#4158BC#4158BC

#4158BC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.9% C 0.159 H 270.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4158BC
RGBrgb(65, 88, 188)
HSLhsl(229, 49%, 50%)
HSVhsv(229, 65%, 74%)
CMYKcmyk(65.4%, 53.2%, 0%, 26.3%)
CIE-LABlab(40.79, 23.88, -55.41)
CIE-LCHlch(40.79, 60.34, 293.31°)
OKLaboklab(49.85% -0.0001 -0.1591)
OKLCHoklch(49.85% 0.159 270)
XYZxyz(14.7437, 11.7328, 49.0549)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158BC #BCA541
analogous
#4196BC #4158BC #6741BC
triadic
#4158BC #BC4158 #58BC41
tetradic
#4158BC #BC4196 #BCA541 #41BC67
square
#4158BC #BC4196 #BCA541 #41BC67
split-complementary
#4158BC #BC6741 #96BC41
monochromatic
#222D61 #31438F #4158BC #6E7FCD #9BA7DC

Accessibility & contrast

On white

6.27
#4158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158BC
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158BC#FFFFFF#000000##FFFFFF
##4158BC1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4158bc;
/* rgb */ color: rgb(65, 88, 188);
/* oklch */ color: oklch(49.9% 0.159 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d1',
    500: '#4158bc',
    950: '#000000',
  },
}
SCSS
$custom: #4158bc;
$custom-light: #8386d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4158bc",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 228.78,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.15912,
    "h": 270
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#4158BC
secondary
#C9BE90
accent
#BF50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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