#4138D9#4138D9

#4138D9 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 47.0% C 0.233 H 275.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4138D9
RGBrgb(65, 56, 217)
HSLhsl(243, 68%, 54%)
HSVhsv(243, 74%, 85%)
CMYKcmyk(70%, 74.2%, 0%, 14.9%)
CIE-LABlab(35.91, 52.99, -80.20)
CIE-LCHlch(35.91, 96.13, 303.45°)
OKLaboklab(47.03% 0.0208 -0.2319)
OKLCHoklch(47.03% 0.233 275.1)
XYZxyz(16.1144, 8.9604, 66.5125)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138D9 #D0D938
analogous
#387FD9 #4138D9 #9138D9
triadic
#4138D9 #D94138 #38D941
tetradic
#4138D9 #D9387F #D0D938 #38D991
square
#4138D9 #D9387F #D0D938 #38D991
split-complementary
#4138D9 #D99138 #7FD938
monochromatic
#1E187E #2A22B2 #4138D9 #726BE3 #A39FED

Accessibility & contrast

On white

7.52
#4138D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4138D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138D9
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138D9#FFFFFF#000000##FFFFFF
##4138D91.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDE
Deuteranopia (green-blind)
#004DD6
Tritanopia (blue-blind)
#006786
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4138d9;
/* rgb */ color: rgb(65, 56, 217);
/* oklch */ color: oklch(47.0% 0.233 275.1);
Tailwind
colors: {
  custom: {
    50: '#8b71e6',
    500: '#4138d9',
    950: '#000000',
  },
}
SCSS
$custom: #4138d9;
$custom-light: #8b71e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4138d9",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 243.354,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47033,
    "c": 0.23283,
    "h": 275.1
  },
  "luminance": 0.08962
}

Semantic roles & 50–950 ramp

primary
#4138D9
secondary
#D5D994
accent
#EB3DE1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4138D9

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

Preview Lab → · Contrast checker → · Palette generator →

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