#4037B8#4037B8

#4037B8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.6% C 0.194 H 277.7°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4037B8
RGBrgb(64, 55, 184)
HSLhsl(244, 54%, 47%)
HSVhsv(244, 70%, 72%)
CMYKcmyk(65.2%, 70.1%, 0%, 27.8%)
CIE-LABlab(32.44, 42.94, -66.67)
CIE-LCHlch(32.44, 79.30, 302.78°)
OKLaboklab(43.59% 0.0262 -0.1924)
OKLCHoklch(43.59% 0.194 277.7)
XYZxyz(12.1295, 7.2820, 46.1045)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037B8 #AFB837
analogous
#376FB8 #4037B8 #8137B8
triadic
#4037B8 #B84037 #37B840
tetradic
#4037B8 #B8376F #AFB837 #37B881
square
#4037B8 #B8376F #AFB837 #37B881
split-complementary
#4037B8 #B88137 #6FB837
monochromatic
#1F1B5A #302989 #4037B8 #655DCF #928DDD

Accessibility & contrast

On white

8.55
#4037B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4037B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037B8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037B8#FFFFFF#000000##FFFFFF
##4037B81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4037b8;
/* rgb */ color: rgb(64, 55, 184);
/* oklch */ color: oklch(43.6% 0.194 277.7);
Tailwind
colors: {
  custom: {
    50: '#846fce',
    500: '#4037b8',
    950: '#000000',
  },
}
SCSS
$custom: #4037b8;
$custom-light: #846fce;
$custom-dark: #000000;
JSON
{
  "hex": "#4037b8",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 244.186,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43586,
    "c": 0.19419,
    "h": 277.7
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#4037B8
secondary
#C3C784
accent
#DD4AD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4037B8

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

Preview Lab → · Contrast checker → · Palette generator →

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