#4138AD#4138AD

#4138AD is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.179 H 279.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#4138AD
RGBrgb(65, 56, 173)
HSLhsl(245, 51%, 45%)
HSVhsv(245, 68%, 68%)
CMYKcmyk(62.4%, 67.6%, 0%, 32.2%)
CIE-LABlab(31.73, 38.90, -61.28)
CIE-LCHlch(31.73, 72.58, 302.41°)
OKLaboklab(42.79% 0.0283 -0.1766)
OKLCHoklch(42.79% 0.179 279.1)
XYZxyz(11.1346, 6.9684, 40.2853)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138AD #A4AD38
analogous
#386AAD #4138AD #7B38AD
triadic
#4138AD #AD4138 #38AD41
tetradic
#4138AD #AD386A #A4AD38 #38AD7B
square
#4138AD #AD386A #A4AD38 #38AD7B
split-complementary
#4138AD #AD7B38 #6AAD38
monochromatic
#1E1A51 #30297F #4138AD #6259C9 #8D87D8

Accessibility & contrast

On white

8.77
#4138AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4138AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138AD
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138AD#FFFFFF#000000##FFFFFF
##4138AD1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4138ad;
/* rgb */ color: rgb(65, 56, 173);
/* oklch */ color: oklch(42.8% 0.179 279.1);
Tailwind
colors: {
  custom: {
    50: '#8270c6',
    500: '#4138ad',
    950: '#000000',
  },
}
SCSS
$custom: #4138ad;
$custom-light: #8270c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4138ad",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 244.615,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42792,
    "c": 0.17888,
    "h": 279.1
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4138AD

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

Preview Lab → · Contrast checker → · Palette generator →

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