#4037C2#4037C2

#4037C2 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.5% C 0.207 H 276.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4037C2
RGBrgb(64, 55, 194)
HSLhsl(244, 56%, 49%)
HSVhsv(244, 72%, 76%)
CMYKcmyk(67%, 71.6%, 0%, 23.9%)
CIE-LABlab(33.38, 46.16, -71.01)
CIE-LCHlch(33.38, 84.69, 303.03°)
OKLaboklab(44.55% 0.0245 -0.2051)
OKLCHoklch(44.55% 0.207 276.8)
XYZxyz(13.2150, 7.7162, 51.8214)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037C2 #B9C237
analogous
#3774C2 #4037C2 #8637C2
triadic
#4037C2 #C24037 #37C240
tetradic
#4037C2 #C23774 #B9C237 #37C286
square
#4037C2 #C23774 #B9C237 #37C286
split-complementary
#4037C2 #C28637 #74C237
monochromatic
#211C63 #302992 #4037C2 #6B63D3 #9893E0

Accessibility & contrast

On white

8.26
#4037C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4037C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037C2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037C2#FFFFFF#000000##FFFFFF
##4037C21.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#005E79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4037c2;
/* rgb */ color: rgb(64, 55, 194);
/* oklch */ color: oklch(44.5% 0.207 276.8);
Tailwind
colors: {
  custom: {
    50: '#8670d6',
    500: '#4037c2',
    950: '#000000',
  },
}
SCSS
$custom: #4037c2;
$custom-light: #8670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4037c2",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 243.885,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.20656,
    "h": 276.8
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4037C2

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

Preview Lab → · Contrast checker → · Palette generator →

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