#4039E1#4039E1

#4039E1 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.9% C 0.241 H 274.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#4039E1
RGBrgb(64, 57, 225)
HSLhsl(243, 74%, 55%)
HSVhsv(243, 75%, 88%)
CMYKcmyk(71.6%, 74.7%, 0%, 11.8%)
CIE-LABlab(36.84, 54.86, -83.25)
CIE-LCHlch(36.84, 99.71, 303.38°)
OKLaboklab(47.91% 0.0175 -0.2408)
OKLCHoklch(47.91% 0.241 274.2)
XYZxyz(17.1636, 9.4508, 72.1392)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039E1 #DAE139
analogous
#3986E1 #4039E1 #9439E1
triadic
#4039E1 #E14039 #39E140
tetradic
#4039E1 #E13986 #DAE139 #39E194
square
#4039E1 #E13986 #DAE139 #39E194
split-complementary
#4039E1 #E19439 #86E139
monochromatic
#1A158B #241DC0 #4039E1 #736EE9 #A7A3F1

Accessibility & contrast

On white

7.27
#4039E1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4039E1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039E1
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039E1#FFFFFF#000000##FFFFFF
##4039E11.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE6
Deuteranopia (green-blind)
#004FDE
Tritanopia (blue-blind)
#006A8B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4039e1;
/* rgb */ color: rgb(64, 57, 225);
/* oklch */ color: oklch(47.9% 0.241 274.2);
Tailwind
colors: {
  custom: {
    50: '#8c72ec',
    500: '#4039e1',
    950: '#000000',
  },
}
SCSS
$custom: #4039e1;
$custom-light: #8c72ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4039e1",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 225
  },
  "hsl": {
    "h": 242.5,
    "s": 73.684,
    "l": 55.294
  },
  "oklch": {
    "l": 0.47914,
    "c": 0.24146,
    "h": 274.2
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#4039E1
secondary
#DBDE98
accent
#F037E9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4039E1

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

Preview Lab → · Contrast checker → · Palette generator →

#4039E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva