#4138BF#4138BF

#4138BF is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.5% C 0.202 H 277.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4138BF
RGBrgb(65, 56, 191)
HSLhsl(244, 55%, 48%)
HSVhsv(244, 71%, 75%)
CMYKcmyk(66%, 70.7%, 0%, 25.1%)
CIE-LABlab(33.38, 44.75, -69.25)
CIE-LCHlch(33.38, 82.45, 302.87°)
OKLaboklab(44.47% 0.0256 -0.2)
OKLCHoklch(44.47% 0.202 277.3)
XYZxyz(12.9951, 7.7126, 50.0840)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138BF #B6BF38
analogous
#3872BF #4138BF #8438BF
triadic
#4138BF #BF4138 #38BF41
tetradic
#4138BF #BF3872 #B6BF38 #38BF84
square
#4138BF #BF3872 #B6BF38 #38BF84
split-complementary
#4138BF #BF8438 #72BF38
monochromatic
#211C60 #312A90 #4138BF #6A63D1 #9792DF

Accessibility & contrast

On white

8.26
#4138BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4138BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138BF
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138BF#FFFFFF#000000##FFFFFF
##4138BF1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#0049BC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4138bf;
/* rgb */ color: rgb(65, 56, 191);
/* oklch */ color: oklch(44.5% 0.202 277.3);
Tailwind
colors: {
  custom: {
    50: '#8670d3',
    500: '#4138bf',
    950: '#000000',
  },
}
SCSS
$custom: #4138bf;
$custom-light: #8670d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4138bf",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 244,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44474,
    "c": 0.2016,
    "h": 277.3
  },
  "luminance": 0.07714
}

Semantic roles & 50–950 ramp

primary
#4138BF
secondary
#C6CA89
accent
#DE4AD4
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #4138BF

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

Preview Lab → · Contrast checker → · Palette generator →

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