#4041BE#4041BE

#4041BE is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.191 H 275.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#4041BE
RGBrgb(64, 65, 190)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 66%, 75%)
CMYKcmyk(66.3%, 65.8%, 0%, 25.5%)
CIE-LABlab(35.18, 38.97, -65.72)
CIE-LCHlch(35.18, 76.40, 300.67°)
OKLaboklab(45.73% 0.0182 -0.1896)
OKLCHoklch(45.73% 0.191 275.5)
XYZxyz(13.2959, 8.5871, 49.6620)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041BE #BEBD40
analogous
#4080BE #4041BE #7E40BE
triadic
#4041BE #BE4041 #41BE40
tetradic
#4041BE #BE4080 #BEBD40 #40BE7E
square
#4041BE #BE4080 #BEBD40 #40BE7E
split-complementary
#4041BE #BE7E40 #80BE40
monochromatic
#212262 #313190 #4041BE #6D6ECE #9B9CDD

Accessibility & contrast

On white

7.73
#4041BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4041BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041BE
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041BE#FFFFFF#000000##FFFFFF
##4041BE1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4041be;
/* rgb */ color: rgb(64, 65, 190);
/* oklch */ color: oklch(45.7% 0.191 275.5);
Tailwind
colors: {
  custom: {
    50: '#8476d3',
    500: '#4041be',
    950: '#000000',
  },
}
SCSS
$custom: #4041be;
$custom-light: #8476d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4041be",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 239.524,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45726,
    "c": 0.1905,
    "h": 275.5
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041BE

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

Preview Lab → · Contrast checker → · Palette generator →

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