#4138D1#4138D1

#4138D1 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.2% C 0.223 H 275.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4138D1
RGBrgb(65, 56, 209)
HSLhsl(244, 62%, 52%)
HSVhsv(244, 73%, 82%)
CMYKcmyk(68.9%, 73.2%, 0%, 18%)
CIE-LABlab(35.11, 50.49, -76.90)
CIE-LCHlch(35.11, 91.99, 303.29°)
OKLaboklab(46.23% 0.0224 -0.2223)
OKLCHoklch(46.23% 0.223 275.7)
XYZxyz(15.0990, 8.5542, 61.1647)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138D1 #C8D138
analogous
#387CD1 #4138D1 #8D38D1
triadic
#4138D1 #D14138 #38D141
tetradic
#4138D1 #D1387C #C8D138 #38D18D
square
#4138D1 #D1387C #C8D138 #38D18D
split-complementary
#4138D1 #D18D38 #7CD138
monochromatic
#201B74 #2E26A6 #4138D1 #706ADC #A09BE8

Accessibility & contrast

On white

7.75
#4138D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4138D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138D1
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138D1#FFFFFF#000000##FFFFFF
##4138D11.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D5
Deuteranopia (green-blind)
#004CCE
Tritanopia (blue-blind)
#006481
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4138d1;
/* rgb */ color: rgb(65, 56, 209);
/* oklch */ color: oklch(46.2% 0.223 275.7);
Tailwind
colors: {
  custom: {
    50: '#8971e0',
    500: '#4138d1',
    950: '#000000',
  },
}
SCSS
$custom: #4138d1;
$custom-light: #8971e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4138d1",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 243.529,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46232,
    "c": 0.2234,
    "h": 275.7
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#4138D1
secondary
#D0D491
accent
#E642DC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138D1

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

Preview Lab → · Contrast checker → · Palette generator →

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