#4138CE#4138CE

#4138CE is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.9% C 0.220 H 276.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4138CE
RGBrgb(65, 56, 206)
HSLhsl(244, 60%, 51%)
HSVhsv(244, 73%, 81%)
CMYKcmyk(68.4%, 72.8%, 0%, 19.2%)
CIE-LABlab(34.82, 49.54, -75.65)
CIE-LCHlch(34.82, 90.42, 303.22°)
OKLaboklab(45.93% 0.0229 -0.2186)
OKLCHoklch(45.93% 0.22 276)
XYZxyz(14.7311, 8.4070, 59.2270)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CE #C5CE38
analogous
#387ACE #4138CE #8C38CE
triadic
#4138CE #CE4138 #38CE41
tetradic
#4138CE #CE387A #C5CE38 #38CE8C
square
#4138CE #CE387A #C5CE38 #38CE8C
split-complementary
#4138CE #CE8C38 #7ACE38
monochromatic
#211C70 #2F28A1 #4138CE #7069DA #9F9AE6

Accessibility & contrast

On white

7.83
#4138CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4138CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CE
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CE#FFFFFF#000000##FFFFFF
##4138CE1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D2
Deuteranopia (green-blind)
#004BCB
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4138ce;
/* rgb */ color: rgb(65, 56, 206);
/* oklch */ color: oklch(45.9% 0.220 276.0);
Tailwind
colors: {
  custom: {
    50: '#8971de',
    500: '#4138ce',
    950: '#000000',
  },
}
SCSS
$custom: #4138ce;
$custom-light: #8971de;
$custom-dark: #000000;
JSON
{
  "hex": "#4138ce",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 243.6,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.45934,
    "c": 0.21983,
    "h": 276
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#4138CE
secondary
#CED290
accent
#E444DA
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138CE

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

Preview Lab → · Contrast checker → · Palette generator →

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