#4138D3#4138D3

#4138D3 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.4% C 0.226 H 275.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#4138D3
RGBrgb(65, 56, 211)
HSLhsl(243, 64%, 52%)
HSVhsv(243, 73%, 83%)
CMYKcmyk(69.2%, 73.5%, 0%, 17.3%)
CIE-LABlab(35.31, 51.12, -77.73)
CIE-LCHlch(35.31, 93.03, 303.33°)
OKLaboklab(46.43% 0.022 -0.2247)
OKLCHoklch(46.43% 0.226 275.6)
XYZxyz(15.3482, 8.6539, 62.4769)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138D3 #CAD338
analogous
#387CD3 #4138D3 #8F38D3
triadic
#4138D3 #D34138 #38D341
tetradic
#4138D3 #D3387C #CAD338 #38D38F
square
#4138D3 #D3387C #CAD338 #38D38F
split-complementary
#4138D3 #D38F38 #7CD338
monochromatic
#201A76 #2D25A9 #4138D3 #716ADE #A19CE9

Accessibility & contrast

On white

7.69
#4138D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4138D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138D3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138D3#FFFFFF#000000##FFFFFF
##4138D31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#004CD0
Tritanopia (blue-blind)
#006583
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4138d3;
/* rgb */ color: rgb(65, 56, 211);
/* oklch */ color: oklch(46.4% 0.226 275.6);
Tailwind
colors: {
  custom: {
    50: '#8a71e2',
    500: '#4138d3',
    950: '#000000',
  },
}
SCSS
$custom: #4138d3;
$custom-light: #8a71e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4138d3",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 243.484,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46431,
    "c": 0.22577,
    "h": 275.6
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#4138D3
secondary
#D1D592
accent
#E741DD
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #4138D3

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

Preview Lab → · Contrast checker → · Palette generator →

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