#4037C0#4037C0

#4037C0 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.4% C 0.204 H 277.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#4037C0
RGBrgb(64, 55, 192)
HSLhsl(244, 55%, 48%)
HSVhsv(244, 71%, 75%)
CMYKcmyk(66.7%, 71.4%, 0%, 24.7%)
CIE-LABlab(33.19, 45.52, -70.15)
CIE-LCHlch(33.19, 83.62, 302.98°)
OKLaboklab(44.35% 0.0248 -0.2026)
OKLCHoklch(44.35% 0.204 277)
XYZxyz(12.9919, 7.6270, 50.6465)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037C0 #B7C037
analogous
#3772C0 #4037C0 #8437C0
triadic
#4037C0 #C04037 #37C040
tetradic
#4037C0 #C03772 #B7C037 #37C084
square
#4037C0 #C03772 #B7C037 #37C084
split-complementary
#4037C0 #C08437 #72C037
monochromatic
#201C61 #302990 #4037C0 #6962D2 #9792E0

Accessibility & contrast

On white

8.31
#4037C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4037C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037C0
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037C0#FFFFFF#000000##FFFFFF
##4037C01.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#005D78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4037c0;
/* rgb */ color: rgb(64, 55, 192);
/* oklch */ color: oklch(44.4% 0.204 277.0);
Tailwind
colors: {
  custom: {
    50: '#866fd4',
    500: '#4037c0',
    950: '#000000',
  },
}
SCSS
$custom: #4037c0;
$custom-light: #866fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4037c0",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 192
  },
  "hsl": {
    "h": 243.942,
    "s": 55.466,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44353,
    "c": 0.2041,
    "h": 277
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#4037C0
secondary
#C6CB88
accent
#DF49D5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #4037C0

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

Preview Lab → · Contrast checker → · Palette generator →

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