#4041FF#4041FF

#4041FF is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 52.0% C 0.269 H 271.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4041FF
RGBrgb(64, 65, 255)
HSLhsl(240, 100%, 63%)
HSVhsv(240, 75%, 100%)
CMYKcmyk(74.9%, 74.5%, 0%, 0%)
CIE-LABlab(41.36, 60.00, -92.73)
CIE-LCHlch(41.36, 110.45, 302.90°)
OKLaboklab(52.01% 0.0087 -0.2684)
OKLCHoklch(52.01% 0.269 271.9)
XYZxyz(22.0486, 12.0882, 95.7596)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041FF #FFFE40
analogous
#40A0FF #4041FF #9F40FF
triadic
#4041FF #FF4041 #41FF40
tetradic
#4041FF #FF40A0 #FFFE40 #40FF9F
square
#4041FF #FF40A0 #FFFE40 #40FF9F
split-complementary
#4041FF #FF9F40 #A0FF40
monochromatic
#0001C5 #0304FF #4041FF #7D7EFF #BABBFF

Accessibility & contrast

On white

6.14
#4041FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4041FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4041FF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041FF#FFFFFF#000000##FFFFFF
##4041FF1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BFF
Deuteranopia (green-blind)
#0058FC
Tritanopia (blue-blind)
#00799E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4041ff;
/* rgb */ color: rgb(64, 65, 255);
/* oklch */ color: oklch(52.0% 0.269 271.9);
Tailwind
colors: {
  custom: {
    50: '#9278ff',
    500: '#4041ff',
    950: '#000000',
  },
}
SCSS
$custom: #4041ff;
$custom-light: #9278ff;
$custom-dark: #000000;
JSON
{
  "hex": "#4041ff",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 255
  },
  "hsl": {
    "h": 239.686,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.26857,
    "h": 271.9
  },
  "luminance": 0.12091
}

Semantic roles & 50–950 ramp

primary
#4041FF
secondary
#F0F0AB
accent
#E400E6
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#0F0918
muted
#7F7B86

Preview Lab

Preview with #4041FF

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

Preview Lab → · Contrast checker → · Palette generator →

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