#4138CC#4138CC

#4138CC is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.217 H 276.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4138CC
RGBrgb(65, 56, 204)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(68.1%, 72.5%, 0%, 20%)
CIE-LABlab(34.62, 48.91, -74.81)
CIE-LCHlch(34.62, 89.37, 303.18°)
OKLaboklab(45.74% 0.0233 -0.2162)
OKLCHoklch(45.74% 0.217 276.2)
XYZxyz(14.4897, 8.3105, 57.9555)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CC #C3CC38
analogous
#3879CC #4138CC #8B38CC
triadic
#4138CC #CC4138 #38CC41
tetradic
#4138CC #CC3879 #C3CC38 #38CC8B
square
#4138CC #CC3879 #C3CC38 #38CC8B
split-complementary
#4138CC #CC8B38 #79CC38
monochromatic
#211C6E #30299E #4138CC #7069D8 #9E99E5

Accessibility & contrast

On white

7.89
#4138CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4138CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CC
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CC#FFFFFF#000000##FFFFFF
##4138CC1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4138cc;
/* rgb */ color: rgb(65, 56, 204);
/* oklch */ color: oklch(45.7% 0.217 276.2);
Tailwind
colors: {
  custom: {
    50: '#8871dd',
    500: '#4138cc',
    950: '#000000',
  },
}
SCSS
$custom: #4138cc;
$custom-light: #8871dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4138cc",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 243.649,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.45737,
    "c": 0.21743,
    "h": 276.2
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#4138CC
secondary
#CDD18F
accent
#E245D9
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138CC

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

Preview Lab → · Contrast checker → · Palette generator →

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