#4158AB#4158AB

#4158AB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.135 H 269.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4158AB
RGBrgb(65, 88, 171)
HSLhsl(227, 45%, 46%)
HSVhsv(227, 62%, 67%)
CMYKcmyk(62%, 48.5%, 0%, 32.9%)
CIE-LABlab(39.65, 17.86, -47.25)
CIE-LCHlch(39.65, 50.51, 290.70°)
OKLaboklab(48.63% -0.0018 -0.1351)
OKLCHoklch(48.63% 0.135 269.2)
XYZxyz(13.0179, 11.0424, 39.9656)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158AB #AB9441
analogous
#418DAB #4158AB #5F41AB
triadic
#4158AB #AB4158 #58AB41
tetradic
#4158AB #AB418D #AB9441 #41AB5F
square
#4158AB #AB418D #AB9441 #41AB5F
split-complementary
#4158AB #AB5F41 #8DAB41
monochromatic
#1F2A52 #30417F #4158AB #657AC4 #91A0D5

Accessibility & contrast

On white

6.54
#4158AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4158AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158AB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158AB#FFFFFF#000000##FFFFFF
##4158AB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4158ab;
/* rgb */ color: rgb(65, 88, 171);
/* oklch */ color: oklch(48.6% 0.135 269.2);
Tailwind
colors: {
  custom: {
    50: '#8086c4',
    500: '#4158ab',
    950: '#000000',
  },
}
SCSS
$custom: #4158ab;
$custom-light: #8086c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4158ab",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 171
  },
  "hsl": {
    "h": 226.981,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48629,
    "c": 0.13511,
    "h": 269.2
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

primary
#4158AB
secondary
#C1B487
accent
#B953D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4158AB

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

Preview Lab → · Contrast checker → · Palette generator →

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