#4041BC#4041BC

#4041BC is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.188 H 275.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#4041BC
RGBrgb(64, 65, 188)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(66%, 65.4%, 0%, 26.3%)
CIE-LABlab(35.00, 38.29, -64.82)
CIE-LCHlch(35.00, 75.29, 300.57°)
OKLaboklab(45.55% 0.0183 -0.187)
OKLCHoklch(45.55% 0.188 275.6)
XYZxyz(13.0788, 8.5003, 48.5187)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041BC #BCBB40
analogous
#407FBC #4041BC #7D40BC
triadic
#4041BC #BC4041 #41BC40
tetradic
#4041BC #BC407F #BCBB40 #40BC7D
square
#4041BC #BC407F #BCBB40 #40BC7D
split-complementary
#4041BC #BC7D40 #7FBC40
monochromatic
#212161 #30318E #4041BC #6C6DCD #9A9ADD

Accessibility & contrast

On white

7.78
#4041BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4041BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041BC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041BC#FFFFFF#000000##FFFFFF
##4041BC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4041bc;
/* rgb */ color: rgb(64, 65, 188);
/* oklch */ color: oklch(45.5% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#8476d1',
    500: '#4041bc',
    950: '#000000',
  },
}
SCSS
$custom: #4041bc;
$custom-light: #8476d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4041bc",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 239.516,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45547,
    "c": 0.18792,
    "h": 275.6
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041BC

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

Preview Lab → · Contrast checker → · Palette generator →

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