#4041C1#4041C1

#4041C1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.194 H 275.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4041C1
RGBrgb(64, 65, 193)
HSLhsl(240, 51%, 50%)
HSVhsv(240, 67%, 76%)
CMYKcmyk(66.8%, 66.3%, 0%, 24.3%)
CIE-LABlab(35.44, 39.97, -67.05)
CIE-LCHlch(35.44, 78.06, 300.80°)
OKLaboklab(46% 0.0179 -0.1935)
OKLCHoklch(46% 0.194 275.3)
XYZxyz(13.6271, 8.7196, 51.4067)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041C1 #C1C040
analogous
#4081C1 #4041C1 #7F40C1
triadic
#4041C1 #C14041 #41C140
tetradic
#4041C1 #C14081 #C1C040 #40C17F
square
#4041C1 #C14081 #C1C040 #40C17F
split-complementary
#4041C1 #C17F40 #81C140
monochromatic
#212266 #303194 #4041C1 #6E6FD0 #9C9DDF

Accessibility & contrast

On white

7.65
#4041C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4041C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041C1
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041C1#FFFFFF#000000##FFFFFF
##4041C11.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4041c1;
/* rgb */ color: rgb(64, 65, 193);
/* oklch */ color: oklch(46.0% 0.194 275.3);
Tailwind
colors: {
  custom: {
    50: '#8576d5',
    500: '#4041c1',
    950: '#000000',
  },
}
SCSS
$custom: #4041c1;
$custom-light: #8576d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4041c1",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 193
  },
  "hsl": {
    "h": 239.535,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45997,
    "c": 0.19435,
    "h": 275.3
  },
  "luminance": 0.08721
}

Semantic roles & 50–950 ramp

primary
#4041C1
secondary
#CBCB92
accent
#D94DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4041C1

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

Preview Lab → · Contrast checker → · Palette generator →

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