#4158AF#4158AF

#4158AF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.9% C 0.141 H 269.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#4158AF
RGBrgb(65, 88, 175)
HSLhsl(227, 46%, 47%)
HSVhsv(227, 63%, 69%)
CMYKcmyk(62.9%, 49.7%, 0%, 31.4%)
CIE-LABlab(39.91, 19.27, -49.20)
CIE-LCHlch(39.91, 52.83, 291.39°)
OKLaboklab(48.91% -0.0013 -0.1408)
OKLCHoklch(48.91% 0.141 269.5)
XYZxyz(13.4049, 11.1973, 42.0040)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158AF #AF9841
analogous
#418FAF #4158AF #6141AF
triadic
#4158AF #AF4158 #58AF41
tetradic
#4158AF #AF418F #AF9841 #41AF61
square
#4158AF #AF418F #AF9841 #41AF61
split-complementary
#4158AF #AF6141 #8FAF41
monochromatic
#202B56 #304282 #4158AF #677BC6 #93A2D7

Accessibility & contrast

On white

6.48
#4158AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4158AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158AF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158AF#FFFFFF#000000##FFFFFF
##4158AF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#1159AD
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4158af;
/* rgb */ color: rgb(65, 88, 175);
/* oklch */ color: oklch(48.9% 0.141 269.5);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4158af',
    950: '#000000',
  },
}
SCSS
$custom: #4158af;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4158af",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 227.455,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48909,
    "c": 0.14084,
    "h": 269.5
  },
  "luminance": 0.11198
}

Semantic roles & 50–950 ramp

primary
#4158AF
secondary
#C2B789
accent
#BA52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4158AF

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

Preview Lab → · Contrast checker → · Palette generator →

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