#4041BD#4041BD

#4041BD is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.189 H 275.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4041BD
RGBrgb(64, 65, 189)
HSLhsl(240, 49%, 50%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(66.1%, 65.6%, 0%, 25.9%)
CIE-LABlab(35.09, 38.63, -65.27)
CIE-LCHlch(35.09, 75.84, 300.62°)
OKLaboklab(45.64% 0.0183 -0.1883)
OKLCHoklch(45.64% 0.189 275.5)
XYZxyz(13.1869, 8.5436, 49.0884)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041BD #BDBC40
analogous
#4080BD #4041BD #7E40BD
triadic
#4041BD #BD4041 #41BD40
tetradic
#4041BD #BD4080 #BDBC40 #40BD7E
square
#4041BD #BD4080 #BDBC40 #40BD7E
split-complementary
#4041BD #BD7E40 #80BD40
monochromatic
#212262 #31318F #4041BD #6D6ECD #9A9BDD

Accessibility & contrast

On white

7.75
#4041BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4041BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041BD
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041BD#FFFFFF#000000##FFFFFF
##4041BD1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4041bd;
/* rgb */ color: rgb(64, 65, 189);
/* oklch */ color: oklch(45.6% 0.189 275.5);
Tailwind
colors: {
  custom: {
    50: '#8476d2',
    500: '#4041bd',
    950: '#000000',
  },
}
SCSS
$custom: #4041bd;
$custom-light: #8476d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4041bd",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 239.52,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45637,
    "c": 0.18921,
    "h": 275.5
  },
  "luminance": 0.08545
}

Semantic roles & 50–950 ramp

primary
#4041BD
secondary
#C9C990
accent
#D84FD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4041BD

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

Preview Lab → · Contrast checker → · Palette generator →

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