#4038B9#4038B9

#4038B9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.8% C 0.194 H 277.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4038B9
RGBrgb(64, 56, 185)
HSLhsl(244, 54%, 47%)
HSVhsv(244, 70%, 73%)
CMYKcmyk(65.4%, 69.7%, 0%, 27.5%)
CIE-LABlab(32.74, 42.68, -66.76)
CIE-LCHlch(32.74, 79.24, 302.59°)
OKLaboklab(43.83% 0.0253 -0.1927)
OKLCHoklch(43.83% 0.194 277.5)
XYZxyz(12.2826, 7.4201, 46.6745)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038B9 #B1B938
analogous
#3871B9 #4038B9 #8138B9
triadic
#4038B9 #B94038 #38B940
tetradic
#4038B9 #B93871 #B1B938 #38B981
square
#4038B9 #B93871 #B1B938 #38B981
split-complementary
#4038B9 #B98138 #71B938
monochromatic
#1F1C5B #302A8A #4038B9 #665FCF #938EDD

Accessibility & contrast

On white

8.45
#4038B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4038B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038B9
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038B9#FFFFFF#000000##FFFFFF
##4038B91.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4038b9;
/* rgb */ color: rgb(64, 56, 185);
/* oklch */ color: oklch(43.8% 0.194 277.5);
Tailwind
colors: {
  custom: {
    50: '#8470cf',
    500: '#4038b9',
    950: '#000000',
  },
}
SCSS
$custom: #4038b9;
$custom-light: #8470cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4038b9",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 243.721,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.43832,
    "c": 0.19435,
    "h": 277.5
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#4038B9
secondary
#C3C885
accent
#DD4BD4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4038B9

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

Preview Lab → · Contrast checker → · Palette generator →

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