#4041CD#4041CD

#4041CD is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.1% C 0.209 H 274.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4041CD
RGBrgb(64, 65, 205)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 69%, 80%)
CMYKcmyk(68.8%, 68.3%, 0%, 19.6%)
CIE-LABlab(36.51, 43.98, -72.28)
CIE-LCHlch(36.51, 84.61, 301.32°)
OKLaboklab(47.1% 0.0165 -0.2088)
OKLCHoklch(47.1% 0.209 274.5)
XYZxyz(15.0204, 9.2770, 58.7448)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041CD #CDCC40
analogous
#4088CD #4041CD #8540CD
triadic
#4041CD #CD4041 #41CD40
tetradic
#4041CD #CD4088 #CDCC40 #40CD85
square
#4041CD #CD4088 #CDCC40 #40CD85
split-complementary
#4041CD #CD8540 #88CD40
monochromatic
#1E1F74 #2B2CA5 #4041CD #7171DA #A1A1E6

Accessibility & contrast

On white

7.35
#4041CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4041CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041CD
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041CD#FFFFFF#000000##FFFFFF
##4041CD1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4041cd;
/* rgb */ color: rgb(64, 65, 205);
/* oklch */ color: oklch(47.1% 0.209 274.5);
Tailwind
colors: {
  custom: {
    50: '#8776dd',
    500: '#4041cd',
    950: '#000000',
  },
}
SCSS
$custom: #4041cd;
$custom-light: #8776dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4041cd",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 239.574,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47102,
    "c": 0.20949,
    "h": 274.5
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#4041CD
secondary
#D3D396
accent
#E146E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4041CD

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

Preview Lab → · Contrast checker → · Palette generator →

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