#4138CF#4138CF

#4138CF is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.0% C 0.221 H 275.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4138CF
RGBrgb(65, 56, 207)
HSLhsl(244, 61%, 52%)
HSVhsv(244, 73%, 81%)
CMYKcmyk(68.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(34.91, 49.86, -76.06)
CIE-LCHlch(34.91, 90.95, 303.24°)
OKLaboklab(46.03% 0.0228 -0.2198)
OKLCHoklch(46.03% 0.221 275.9)
XYZxyz(14.8529, 8.4558, 59.8688)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CF #C6CF38
analogous
#387BCF #4138CF #8D38CF
triadic
#4138CF #CF4138 #38CF41
tetradic
#4138CF #CF387B #C6CF38 #38CF8D
square
#4138CF #CF387B #C6CF38 #38CF8D
split-complementary
#4138CF #CF8D38 #7BCF38
monochromatic
#201B71 #2F27A3 #4138CF #7069DB #9F9BE7

Accessibility & contrast

On white

7.80
#4138CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4138CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CF#FFFFFF#000000##FFFFFF
##4138CF1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4138cf;
/* rgb */ color: rgb(65, 56, 207);
/* oklch */ color: oklch(46.0% 0.221 275.9);
Tailwind
colors: {
  custom: {
    50: '#8971df',
    500: '#4138cf',
    950: '#000000',
  },
}
SCSS
$custom: #4138cf;
$custom-light: #8971df;
$custom-dark: #000000;
JSON
{
  "hex": "#4138cf",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 243.576,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46033,
    "c": 0.22102,
    "h": 275.9
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#4138CF
secondary
#CFD390
accent
#E444DB
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138CF

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

Preview Lab → · Contrast checker → · Palette generator →

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