#4041CF#4041CF

#4041CF is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.3% C 0.212 H 274.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#4041CF
RGBrgb(64, 65, 207)
HSLhsl(240, 60%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(69.1%, 68.6%, 0%, 18.8%)
CIE-LABlab(36.69, 44.64, -73.14)
CIE-LCHlch(36.69, 85.69, 301.40°)
OKLaboklab(47.29% 0.0162 -0.2113)
OKLCHoklch(47.29% 0.212 274.4)
XYZxyz(15.2634, 9.3741, 60.0244)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041CF #CFCE40
analogous
#4089CF #4041CF #8640CF
triadic
#4041CF #CF4041 #41CF40
tetradic
#4041CF #CF4089 #CFCE40 #40CF86
square
#4041CF #CF4089 #CFCE40 #40CF86
split-complementary
#4041CF #CF8640 #89CF40
monochromatic
#1E1E77 #2A2BA8 #4041CF #7172DB #A2A2E8

Accessibility & contrast

On white

7.30
#4041CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4041CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041CF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041CF#FFFFFF#000000##FFFFFF
##4041CF1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4041cf;
/* rgb */ color: rgb(64, 65, 207);
/* oklch */ color: oklch(47.3% 0.212 274.4);
Tailwind
colors: {
  custom: {
    50: '#8876df',
    500: '#4041cf',
    950: '#000000',
  },
}
SCSS
$custom: #4041cf;
$custom-light: #8876df;
$custom-dark: #000000;
JSON
{
  "hex": "#4041cf",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 239.58,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.21197,
    "h": 274.4
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#4041CF
secondary
#D4D497
accent
#E245E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4041CF

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

Preview Lab → · Contrast checker → · Palette generator →

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