#4138B2#4138B2

#4138B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.3% C 0.185 H 278.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#4138B2
RGBrgb(65, 56, 178)
HSLhsl(244, 52%, 46%)
HSVhsv(244, 69%, 70%)
CMYKcmyk(63.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(32.18, 40.53, -63.53)
CIE-LCHlch(32.18, 75.36, 302.54°)
OKLaboklab(43.25% 0.0277 -0.1832)
OKLCHoklch(43.25% 0.185 278.6)
XYZxyz(11.6274, 7.1656, 42.8812)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138B2 #A9B238
analogous
#386CB2 #4138B2 #7E38B2
triadic
#4138B2 #B24138 #38B241
tetradic
#4138B2 #B2386C #A9B238 #38B27E
square
#4138B2 #B2386C #A9B238 #38B27E
split-complementary
#4138B2 #B27E38 #6CB238
monochromatic
#1F1B55 #302983 #4138B2 #645CCC #908ADA

Accessibility & contrast

On white

8.63
#4138B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4138B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138B2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138B2#FFFFFF#000000##FFFFFF
##4138B21.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4138b2;
/* rgb */ color: rgb(65, 56, 178);
/* oklch */ color: oklch(43.3% 0.185 278.6);
Tailwind
colors: {
  custom: {
    50: '#8370ca',
    500: '#4138b2',
    950: '#000000',
  },
}
SCSS
$custom: #4138b2;
$custom-light: #8370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4138b2",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 244.426,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43251,
    "c": 0.18528,
    "h": 278.6
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#4138B2
secondary
#C0C581
accent
#DC4CD1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4138B2

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

Preview Lab → · Contrast checker → · Palette generator →

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