#4138AE#4138AE

#4138AE is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.180 H 279.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4138AE
RGBrgb(65, 56, 174)
HSLhsl(245, 51%, 45%)
HSVhsv(245, 68%, 68%)
CMYKcmyk(62.6%, 67.8%, 0%, 31.8%)
CIE-LABlab(31.82, 39.23, -61.73)
CIE-LCHlch(31.82, 73.14, 302.43°)
OKLaboklab(42.88% 0.0282 -0.1779)
OKLCHoklch(42.88% 0.18 279)
XYZxyz(11.2317, 7.0073, 40.7969)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138AE #A5AE38
analogous
#386AAE #4138AE #7C38AE
triadic
#4138AE #AE4138 #38AE41
tetradic
#4138AE #AE386A #A5AE38 #38AE7C
square
#4138AE #AE386A #A5AE38 #38AE7C
split-complementary
#4138AE #AE7C38 #6AAE38
monochromatic
#1E1A51 #302980 #4138AE #6259CA #8E88D9

Accessibility & contrast

On white

8.74
#4138AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4138AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138AE
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138AE#FFFFFF#000000##FFFFFF
##4138AE1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4138ae;
/* rgb */ color: rgb(65, 56, 174);
/* oklch */ color: oklch(42.9% 0.180 279.0);
Tailwind
colors: {
  custom: {
    50: '#8270c7',
    500: '#4138ae',
    950: '#000000',
  },
}
SCSS
$custom: #4138ae;
$custom-light: #8270c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4138ae",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 244.576,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42883,
    "c": 0.18017,
    "h": 279
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#4138AE
secondary
#BEC37F
accent
#DB4DD0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4138AE

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

Preview Lab → · Contrast checker → · Palette generator →

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