#4148AB#4148AB

#4148AB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.156 H 275.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4148AB
RGBrgb(65, 72, 171)
HSLhsl(236, 45%, 46%)
HSVhsv(236, 62%, 67%)
CMYKcmyk(62%, 57.9%, 0%, 32.9%)
CIE-LABlab(35.40, 28.22, -54.12)
CIE-LCHlch(35.40, 61.03, 297.54°)
OKLaboklab(45.43% 0.0142 -0.1555)
OKLCHoklch(45.43% 0.156 275.2)
XYZxyz(11.8456, 8.6979, 39.5748)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148AB #ABA441
analogous
#417DAB #4148AB #6F41AB
triadic
#4148AB #AB4148 #48AB41
tetradic
#4148AB #AB417D #ABA441 #41AB6F
square
#4148AB #AB417D #ABA441 #41AB6F
split-complementary
#4148AB #AB6F41 #7DAB41
monochromatic
#1F2352 #30357F #4148AB #656BC4 #9196D5

Accessibility & contrast

On white

7.66
#4148AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4148AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4148AB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148AB#FFFFFF#000000##FFFFFF
##4148AB1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4148ab;
/* rgb */ color: rgb(65, 72, 171);
/* oklch */ color: oklch(45.4% 0.156 275.2);
Tailwind
colors: {
  custom: {
    50: '#817bc5',
    500: '#4148ab',
    950: '#000000',
  },
}
SCSS
$custom: #4148ab;
$custom-light: #817bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4148ab",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 171
  },
  "hsl": {
    "h": 236.038,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.15615,
    "h": 275.2
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#4148AB
secondary
#C1BD87
accent
#CC53D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4148AB

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

Preview Lab → · Contrast checker → · Palette generator →

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