#4037C9#4037C9

#4037C9 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.2% C 0.215 H 276.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4037C9
RGBrgb(64, 55, 201)
HSLhsl(244, 57%, 50%)
HSVhsv(244, 73%, 79%)
CMYKcmyk(68.2%, 72.6%, 0%, 21.2%)
CIE-LABlab(34.06, 48.40, -73.98)
CIE-LCHlch(34.06, 88.41, 303.19°)
OKLaboklab(45.23% 0.0232 -0.2138)
OKLCHoklch(45.23% 0.215 276.2)
XYZxyz(14.0197, 8.0381, 56.0597)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037C9 #C0C937
analogous
#3777C9 #4037C9 #8937C9
triadic
#4037C9 #C94037 #37C940
tetradic
#4037C9 #C93777 #C0C937 #37C989
square
#4037C9 #C93777 #C0C937 #37C989
split-complementary
#4037C9 #C98937 #77C937
monochromatic
#211C69 #302999 #4037C9 #6E67D6 #9C97E3

Accessibility & contrast

On white

8.05
#4037C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4037C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037C9
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037C9#FFFFFF#000000##FFFFFF
##4037C91.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004AC6
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4037c9;
/* rgb */ color: rgb(64, 55, 201);
/* oklch */ color: oklch(45.2% 0.215 276.2);
Tailwind
colors: {
  custom: {
    50: '#8770db',
    500: '#4037c9',
    950: '#000000',
  },
}
SCSS
$custom: #4037c9;
$custom-light: #8770db;
$custom-dark: #000000;
JSON
{
  "hex": "#4037c9",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 201
  },
  "hsl": {
    "h": 243.699,
    "s": 57.48,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45233,
    "c": 0.21505,
    "h": 276.2
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#4037C9
secondary
#CBCF8D
accent
#E147D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4037C9

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

Preview Lab → · Contrast checker → · Palette generator →

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