#4037B7#4037B7

#4037B7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.5% C 0.193 H 277.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4037B7
RGBrgb(64, 55, 183)
HSLhsl(244, 54%, 47%)
HSVhsv(244, 70%, 72%)
CMYKcmyk(65%, 69.9%, 0%, 28.2%)
CIE-LABlab(32.35, 42.61, -66.23)
CIE-LCHlch(32.35, 78.75, 302.76°)
OKLaboklab(43.49% 0.0263 -0.1911)
OKLCHoklch(43.49% 0.193 277.8)
XYZxyz(12.0250, 7.2403, 45.5544)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037B7 #AEB737
analogous
#376EB7 #4037B7 #8037B7
triadic
#4037B7 #B74037 #37B740
tetradic
#4037B7 #B7376E #AEB737 #37B780
square
#4037B7 #B7376E #AEB737 #37B780
split-complementary
#4037B7 #B78037 #6EB737
monochromatic
#1F1B59 #302988 #4037B7 #655DCE #928CDC

Accessibility & contrast

On white

8.58
#4037B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4037B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037B7
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037B7#FFFFFF#000000##FFFFFF
##4037B71.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4037b7;
/* rgb */ color: rgb(64, 55, 183);
/* oklch */ color: oklch(43.5% 0.193 277.8);
Tailwind
colors: {
  custom: {
    50: '#846fce',
    500: '#4037b7',
    950: '#000000',
  },
}
SCSS
$custom: #4037b7;
$custom-light: #846fce;
$custom-dark: #000000;
JSON
{
  "hex": "#4037b7",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 244.219,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.19294,
    "h": 277.8
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#4037B7
secondary
#C2C783
accent
#DD4BD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4037B7

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

Preview Lab → · Contrast checker → · Palette generator →

#4037B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva