#4038AE#4038AE

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

Color values

HEX#4038AE
RGBrgb(64, 56, 174)
HSLhsl(244, 51%, 45%)
HSVhsv(244, 68%, 68%)
CMYKcmyk(63.2%, 67.8%, 0%, 31.8%)
CIE-LABlab(31.75, 39.08, -61.86)
CIE-LCHlch(31.75, 73.17, 302.28°)
OKLaboklab(42.81% 0.0269 -0.1783)
OKLCHoklch(42.81% 0.18 278.6)
XYZxyz(11.1661, 6.9735, 40.7938)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AE #A6AE38
analogous
#386BAE #4038AE #7B38AE
triadic
#4038AE #AE4038 #38AE40
tetradic
#4038AE #AE386B #A6AE38 #38AE7B
square
#4038AE #AE386B #A6AE38 #38AE7B
split-complementary
#4038AE #AE7B38 #6BAE38
monochromatic
#1E1A51 #2F2980 #4038AE #6159CA #8D88D9

Accessibility & contrast

On white

8.77
#4038AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4038AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038AE
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038AE#FFFFFF#000000##FFFFFF
##4038AE1.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)
#004FB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4038ae;
/* rgb */ color: rgb(64, 56, 174);
/* oklch */ color: oklch(42.8% 0.180 278.6);
Tailwind
colors: {
  custom: {
    50: '#826fc7',
    500: '#4038ae',
    950: '#000000',
  },
}
SCSS
$custom: #4038ae;
$custom-light: #826fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4038ae",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 244.068,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.18037,
    "h": 278.6
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4038AE

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

Preview Lab → · Contrast checker → · Palette generator →

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