#4041C0#4041C0

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

Color values

HEX#4041C0
RGBrgb(64, 65, 192)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.7%, 66.1%, 0%, 24.7%)
CIE-LABlab(35.35, 39.64, -66.60)
CIE-LCHlch(35.35, 77.51, 300.76°)
OKLaboklab(45.91% 0.018 -0.1922)
OKLCHoklch(45.91% 0.193 275.3)
XYZxyz(13.5159, 8.6752, 50.8211)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041C0 #C0BF40
analogous
#4081C0 #4041C0 #7F40C0
triadic
#4041C0 #C04041 #41C040
tetradic
#4041C0 #C04081 #C0BF40 #40C07F
square
#4041C0 #C04081 #C0BF40 #40C07F
split-complementary
#4041C0 #C07F40 #81C040
monochromatic
#212264 #303192 #4041C0 #6E6FCF #9C9DDE

Accessibility & contrast

On white

7.68
#4041C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4041C0
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041C0#FFFFFF#000000##FFFFFF
##4041C01.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4041c0;
/* rgb */ color: rgb(64, 65, 192);
/* oklch */ color: oklch(45.9% 0.193 275.3);
Tailwind
colors: {
  custom: {
    50: '#8576d4',
    500: '#4041c0',
    950: '#000000',
  },
}
SCSS
$custom: #4041c0;
$custom-light: #8576d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4041c0",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 192
  },
  "hsl": {
    "h": 239.531,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.19307,
    "h": 275.3
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#4041C0
secondary
#CBCA91
accent
#D94EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4041C0

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

Preview Lab → · Contrast checker → · Palette generator →

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