#4158CA#4158CA

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

Color values

HEX#4158CA
RGBrgb(65, 88, 202)
HSLhsl(230, 56%, 52%)
HSVhsv(230, 68%, 79%)
CMYKcmyk(67.8%, 56.4%, 0%, 20.8%)
CIE-LABlab(41.79, 28.84, -61.92)
CIE-LCHlch(41.79, 68.30, 294.98°)
OKLaboklab(50.92% 0.0007 -0.1783)
OKLCHoklch(50.92% 0.178 270.2)
XYZxyz(16.3267, 12.3660, 57.3921)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158CA #CAB341
analogous
#419DCA #4158CA #6E41CA
triadic
#4158CA #CA4158 #58CA41
tetradic
#4158CA #CA419D #CAB341 #41CA6E
square
#4158CA #CA419D #CAB341 #41CA6E
split-complementary
#4158CA #CA6E41 #9DCA41
monochromatic
#202D71 #2D40A1 #4158CA #7182D7 #A1ACE5

Accessibility & contrast

On white

6.05
#4158CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4158CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158CA
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158CA#FFFFFF#000000##FFFFFF
##4158CA1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4158ca;
/* rgb */ color: rgb(65, 88, 202);
/* oklch */ color: oklch(50.9% 0.178 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586db',
    500: '#4158ca',
    950: '#000000',
  },
}
SCSS
$custom: #4158ca;
$custom-light: #8586db;
$custom-dark: #000000;
JSON
{
  "hex": "#4158ca",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 229.927,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50924,
    "c": 0.17826,
    "h": 270.2
  },
  "luminance": 0.12368
}

Semantic roles & 50–950 ramp

primary
#4158CA
secondary
#D1C796
accent
#C648E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158CA

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

Preview Lab → · Contrast checker → · Palette generator →

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