#4138C6#4138C6

#4138C6 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.1% C 0.210 H 276.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4138C6
RGBrgb(65, 56, 198)
HSLhsl(244, 56%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(67.2%, 71.7%, 0%, 22.4%)
CIE-LABlab(34.04, 47.00, -72.26)
CIE-LCHlch(34.04, 86.20, 303.04°)
OKLaboklab(45.15% 0.0244 -0.2088)
OKLCHoklch(45.15% 0.21 276.7)
XYZxyz(13.7839, 8.0282, 54.2383)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138C6 #BDC638
analogous
#3876C6 #4138C6 #8838C6
triadic
#4138C6 #C64138 #38C641
tetradic
#4138C6 #C63876 #BDC638 #38C688
square
#4138C6 #C63876 #BDC638 #38C688
split-complementary
#4138C6 #C68838 #76C638
monochromatic
#221D67 #312B96 #4138C6 #6E67D4 #9C97E2

Accessibility & contrast

On white

8.06
#4138C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4138C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138C6
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138C6#FFFFFF#000000##FFFFFF
##4138C61.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4138c6;
/* rgb */ color: rgb(65, 56, 198);
/* oklch */ color: oklch(45.1% 0.210 276.7);
Tailwind
colors: {
  custom: {
    50: '#8770d9',
    500: '#4138c6',
    950: '#000000',
  },
}
SCSS
$custom: #4138c6;
$custom-light: #8770d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4138c6",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 243.803,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45149,
    "c": 0.21018,
    "h": 276.7
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#4138C6
secondary
#C9CD8D
accent
#DF49D6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138C6

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

Preview Lab → · Contrast checker → · Palette generator →

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