#4158CB#4158CB

#4158CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.0% C 0.180 H 270.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4158CB
RGBrgb(65, 88, 203)
HSLhsl(230, 57%, 53%)
HSVhsv(230, 68%, 80%)
CMYKcmyk(68%, 56.7%, 0%, 20.4%)
CIE-LABlab(41.87, 29.19, -62.37)
CIE-LCHlch(41.87, 68.87, 295.08°)
OKLaboklab(51% 0.0007 -0.1796)
OKLCHoklch(51% 0.18 270.2)
XYZxyz(16.4455, 12.4135, 58.0177)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158CB #CBB441
analogous
#419DCB #4158CB #6F41CB
triadic
#4158CB #CB4158 #58CB41
tetradic
#4158CB #CB419D #CBB441 #41CB6F
square
#4158CB #CB419D #CBB441 #41CB6F
split-complementary
#4158CB #CB6F41 #9DCB41
monochromatic
#1F2D72 #2C40A2 #4158CB #7182D8 #A1ACE5

Accessibility & contrast

On white

6.03
#4158CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4158CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158CB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158CB#FFFFFF#000000##FFFFFF
##4158CB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4158cb;
/* rgb */ color: rgb(65, 88, 203);
/* oklch */ color: oklch(51.0% 0.180 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4158cb',
    950: '#000000',
  },
}
SCSS
$custom: #4158cb;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4158cb",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 230,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51003,
    "c": 0.1796,
    "h": 270.2
  },
  "luminance": 0.12415
}

Semantic roles & 50–950 ramp

primary
#4158CB
secondary
#D2C896
accent
#C748E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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