#4138D4#4138D4

#4138D4 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.5% C 0.227 H 275.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4138D4
RGBrgb(65, 56, 212)
HSLhsl(243, 64%, 53%)
HSVhsv(243, 74%, 83%)
CMYKcmyk(69.3%, 73.6%, 0%, 16.9%)
CIE-LABlab(35.41, 51.43, -78.14)
CIE-LCHlch(35.41, 93.55, 303.35°)
OKLaboklab(46.53% 0.0218 -0.2259)
OKLCHoklch(46.53% 0.227 275.5)
XYZxyz(15.4739, 8.7042, 63.1392)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138D4 #CBD438
analogous
#387DD4 #4138D4 #8F38D4
triadic
#4138D4 #D44138 #38D441
tetradic
#4138D4 #D4387D #CBD438 #38D48F
square
#4138D4 #D4387D #CBD438 #38D48F
split-complementary
#4138D4 #D48F38 #7DD438
monochromatic
#1F1A78 #2C25AA #4138D4 #716ADF #A19DEA

Accessibility & contrast

On white

7.66
#4138D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4138D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138D4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138D4#FFFFFF#000000##FFFFFF
##4138D41.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)
#005AD9
Deuteranopia (green-blind)
#004CD1
Tritanopia (blue-blind)
#006583
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4138d4;
/* rgb */ color: rgb(65, 56, 212);
/* oklch */ color: oklch(46.5% 0.227 275.5);
Tailwind
colors: {
  custom: {
    50: '#8a71e3',
    500: '#4138d4',
    950: '#000000',
  },
}
SCSS
$custom: #4138d4;
$custom-light: #8a71e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4138d4",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 243.462,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46531,
    "c": 0.22696,
    "h": 275.5
  },
  "luminance": 0.08706
}

Semantic roles & 50–950 ramp

primary
#4138D4
secondary
#D2D692
accent
#E740DE
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4138D4

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

Preview Lab → · Contrast checker → · Palette generator →

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