#4041C7#4041C7

#4041C7 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.202 H 274.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4041C7
RGBrgb(64, 65, 199)
HSLhsl(240, 55%, 52%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(67.8%, 67.3%, 0%, 22%)
CIE-LABlab(35.97, 41.98, -69.68)
CIE-LCHlch(35.97, 81.35, 301.07°)
OKLaboklab(46.55% 0.0172 -0.2012)
OKLCHoklch(46.55% 0.202 274.9)
XYZxyz(14.3100, 8.9928, 55.0034)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041C7 #C7C640
analogous
#4084C7 #4041C7 #8340C7
triadic
#4041C7 #C74041 #41C740
tetradic
#4041C7 #C74084 #C7C640 #40C783
square
#4041C7 #C74084 #C7C640 #40C783
split-complementary
#4041C7 #C78340 #84C740
monochromatic
#20206D #2E2F9C #4041C7 #6F70D5 #9F9FE3

Accessibility & contrast

On white

7.50
#4041C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4041C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041C7
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041C7#FFFFFF#000000##FFFFFF
##4041C71.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4041c7;
/* rgb */ color: rgb(64, 65, 199);
/* oklch */ color: oklch(46.5% 0.202 274.9);
Tailwind
colors: {
  custom: {
    50: '#8676d9',
    500: '#4041c7',
    950: '#000000',
  },
}
SCSS
$custom: #4041c7;
$custom-light: #8676d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4041c7",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 199
  },
  "hsl": {
    "h": 239.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46546,
    "c": 0.20197,
    "h": 274.9
  },
  "luminance": 0.08994
}

Semantic roles & 50–950 ramp

primary
#4041C7
secondary
#CFCF94
accent
#DD4ADE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #4041C7

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

Preview Lab → · Contrast checker → · Palette generator →

#4041C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva