#4041C2#4041C2

#4041C2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.196 H 275.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#4041C2
RGBrgb(64, 65, 194)
HSLhsl(240, 52%, 51%)
HSVhsv(240, 67%, 76%)
CMYKcmyk(67%, 66.5%, 0%, 23.9%)
CIE-LABlab(35.53, 40.31, -67.49)
CIE-LCHlch(35.53, 78.61, 300.85°)
OKLaboklab(46.09% 0.0177 -0.1948)
OKLCHoklch(46.09% 0.196 275.2)
XYZxyz(13.7390, 8.7644, 51.9961)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041C2 #C2C140
analogous
#4082C2 #4041C2 #8040C2
triadic
#4041C2 #C24041 #41C240
tetradic
#4041C2 #C24082 #C2C140 #40C280
square
#4041C2 #C24082 #C2C140 #40C280
split-complementary
#4041C2 #C28040 #82C240
monochromatic
#212167 #303095 #4041C2 #6E6FD1 #9D9DE0

Accessibility & contrast

On white

7.63
#4041C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4041C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041C2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041C2#FFFFFF#000000##FFFFFF
##4041C21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4041c2;
/* rgb */ color: rgb(64, 65, 194);
/* oklch */ color: oklch(46.1% 0.196 275.2);
Tailwind
colors: {
  custom: {
    50: '#8576d6',
    500: '#4041c2',
    950: '#000000',
  },
}
SCSS
$custom: #4041c2;
$custom-light: #8576d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4041c2",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 239.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.19563,
    "h": 275.2
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#4041C2
secondary
#CCCB92
accent
#DA4DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4041C2

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

Preview Lab → · Contrast checker → · Palette generator →

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