#4038BD#4038BD

#4038BD is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.2% C 0.199 H 277.1°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4038BD
RGBrgb(64, 56, 189)
HSLhsl(244, 54%, 48%)
HSVhsv(244, 70%, 74%)
CMYKcmyk(66.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(33.12, 43.98, -68.51)
CIE-LCHlch(33.12, 81.41, 302.70°)
OKLaboklab(44.21% 0.0247 -0.1978)
OKLCHoklch(44.21% 0.199 277.1)
XYZxyz(12.7108, 7.5914, 48.9297)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038BD #B5BD38
analogous
#3872BD #4038BD #8238BD
triadic
#4038BD #BD4038 #38BD40
tetradic
#4038BD #BD3872 #B5BD38 #38BD82
square
#4038BD #BD3872 #B5BD38 #38BD82
split-complementary
#4038BD #BD8238 #72BD38
monochromatic
#201C5F #302A8E #4038BD #6862D0 #9691DE

Accessibility & contrast

On white

8.34
#4038BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4038BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038BD
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038BD#FFFFFF#000000##FFFFFF
##4038BD1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0048BB
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4038bd;
/* rgb */ color: rgb(64, 56, 189);
/* oklch */ color: oklch(44.2% 0.199 277.1);
Tailwind
colors: {
  custom: {
    50: '#8570d2',
    500: '#4038bd',
    950: '#000000',
  },
}
SCSS
$custom: #4038bd;
$custom-light: #8570d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4038bd",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 243.609,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44212,
    "c": 0.19934,
    "h": 277.1
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#4038BD
secondary
#C5C987
accent
#DE4AD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4038BD

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

Preview Lab → · Contrast checker → · Palette generator →

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