#4148D9#4148D9

#4148D9 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.4% C 0.217 H 273.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4148D9
RGBrgb(65, 72, 217)
HSLhsl(237, 67%, 55%)
HSVhsv(237, 70%, 85%)
CMYKcmyk(70%, 66.8%, 0%, 14.9%)
CIE-LABlab(39.18, 43.95, -74.81)
CIE-LCHlch(39.18, 86.76, 300.43°)
OKLaboklab(49.38% 0.0118 -0.2162)
OKLCHoklch(49.38% 0.217 273.1)
XYZxyz(17.0175, 10.7666, 66.8135)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148D9 #D9D241
analogous
#4194D9 #4148D9 #8641D9
triadic
#4148D9 #D94148 #48D941
tetradic
#4148D9 #D94194 #D9D241 #41D986
square
#4148D9 #D94194 #D9D241 #41D986
split-complementary
#4148D9 #D98641 #94D941
monochromatic
#1B1F85 #252CB8 #4148D9 #7479E3 #A7AAED

Accessibility & contrast

On white

6.66
#4148D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4148D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4148D9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148D9#FFFFFF#000000##FFFFFF
##4148D91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DD
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006F8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4148d9;
/* rgb */ color: rgb(65, 72, 217);
/* oklch */ color: oklch(49.4% 0.217 273.1);
Tailwind
colors: {
  custom: {
    50: '#8a7be6',
    500: '#4148d9',
    950: '#000000',
  },
}
SCSS
$custom: #4148d9;
$custom-light: #8a7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#4148d9",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 237.237,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.4938,
    "c": 0.21652,
    "h": 273.1
  },
  "luminance": 0.10768
}

Semantic roles & 50–950 ramp

primary
#4148D9
secondary
#DBD89B
accent
#E23EEA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4148D9

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

Preview Lab → · Contrast checker → · Palette generator →

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