#4138CB#4138CB

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

Color values

HEX#4138CB
RGBrgb(65, 56, 203)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 72%, 80%)
CMYKcmyk(68%, 72.4%, 0%, 20.4%)
CIE-LABlab(34.52, 48.59, -74.38)
CIE-LCHlch(34.52, 88.85, 303.15°)
OKLaboklab(45.64% 0.0235 -0.2149)
OKLCHoklch(45.64% 0.216 276.2)
XYZxyz(14.3701, 8.2627, 57.3259)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CB #C2CB38
analogous
#3879CB #4138CB #8A38CB
triadic
#4138CB #CB4138 #38CB41
tetradic
#4138CB #CB3879 #C2CB38 #38CB8A
square
#4138CB #CB3879 #C2CB38 #38CB8A
split-complementary
#4138CB #CB8A38 #79CB38
monochromatic
#211C6C #30299D #4138CB #6F69D8 #9E99E4

Accessibility & contrast

On white

7.92
#4138CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4138CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CB#FFFFFF#000000##FFFFFF
##4138CB1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#004BC8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4138cb;
/* rgb */ color: rgb(65, 56, 203);
/* oklch */ color: oklch(45.6% 0.216 276.2);
Tailwind
colors: {
  custom: {
    50: '#8871dc',
    500: '#4138cb',
    950: '#000000',
  },
}
SCSS
$custom: #4138cb;
$custom-light: #8871dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4138cb",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 243.673,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45638,
    "c": 0.21623,
    "h": 276.2
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#4138CB
secondary
#CCD08F
accent
#E246D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138CB

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

Preview Lab → · Contrast checker → · Palette generator →

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