#4138CD#4138CD

#4138CD is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.8% C 0.219 H 276.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#4138CD
RGBrgb(65, 56, 205)
HSLhsl(244, 60%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(68.3%, 72.7%, 0%, 19.6%)
CIE-LABlab(34.72, 49.22, -75.23)
CIE-LCHlch(34.72, 89.90, 303.20°)
OKLaboklab(45.84% 0.0231 -0.2174)
OKLCHoklch(45.84% 0.219 276.1)
XYZxyz(14.6100, 8.3586, 58.5892)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CD #C4CD38
analogous
#3879CD #4138CD #8B38CD
triadic
#4138CD #CD4138 #38CD41
tetradic
#4138CD #CD3879 #C4CD38 #38CD8B
square
#4138CD #CD3879 #C4CD38 #38CD8B
split-complementary
#4138CD #CD8B38 #79CD38
monochromatic
#211C6F #2F28A0 #4138CD #7069D9 #9E9AE6

Accessibility & contrast

On white

7.86
#4138CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4138CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CD
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CD#FFFFFF#000000##FFFFFF
##4138CD1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D1
Deuteranopia (green-blind)
#004BCA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4138cd;
/* rgb */ color: rgb(65, 56, 205);
/* oklch */ color: oklch(45.8% 0.219 276.1);
Tailwind
colors: {
  custom: {
    50: '#8971de',
    500: '#4138cd',
    950: '#000000',
  },
}
SCSS
$custom: #4138cd;
$custom-light: #8971de;
$custom-dark: #000000;
JSON
{
  "hex": "#4138cd",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 243.624,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.21863,
    "h": 276.1
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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