#4037B2#4037B2

#4037B2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.0% C 0.187 H 278.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4037B2
RGBrgb(64, 55, 178)
HSLhsl(244, 53%, 46%)
HSVhsv(244, 69%, 70%)
CMYKcmyk(64%, 69.1%, 0%, 30.2%)
CIE-LABlab(31.89, 40.98, -64.01)
CIE-LCHlch(31.89, 76.01, 302.63°)
OKLaboklab(43.02% 0.0271 -0.1847)
OKLCHoklch(43.02% 0.187 278.3)
XYZxyz(11.5138, 7.0358, 42.8621)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037B2 #A9B237
analogous
#376BB2 #4037B2 #7D37B2
triadic
#4037B2 #B24037 #37B240
tetradic
#4037B2 #B2376B #A9B237 #37B27D
square
#4037B2 #B2376B #A9B237 #37B27D
split-complementary
#4037B2 #B27D37 #6BB237
monochromatic
#1E1A54 #2F2983 #4037B2 #625ACC #8F89DB

Accessibility & contrast

On white

8.72
#4037B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4037B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037B2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037B2#FFFFFF#000000##FFFFFF
##4037B21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4037b2;
/* rgb */ color: rgb(64, 55, 178);
/* oklch */ color: oklch(43.0% 0.187 278.3);
Tailwind
colors: {
  custom: {
    50: '#836fca',
    500: '#4037b2',
    950: '#000000',
  },
}
SCSS
$custom: #4037b2;
$custom-light: #836fca;
$custom-dark: #000000;
JSON
{
  "hex": "#4037b2",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 244.39,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43021,
    "c": 0.18664,
    "h": 278.3
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#4037B2
secondary
#C0C580
accent
#DC4CD2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4037B2

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

Preview Lab → · Contrast checker → · Palette generator →

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