#4240BF#4240BF

#4240BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.192 H 276.3°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#4240BF
RGBrgb(66, 64, 191)
HSLhsl(241, 50%, 50%)
HSVhsv(241, 66%, 75%)
CMYKcmyk(65.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.17, 40.18, -66.30)
CIE-LCHlch(35.17, 77.53, 301.22°)
OKLaboklab(45.79% 0.0212 -0.1913)
OKLCHoklch(45.79% 0.192 276.3)
XYZxyz(13.4811, 8.5855, 50.2268)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240BF #BDBF40
analogous
#407DBF #4240BF #8240BF
triadic
#4240BF #BF4240 #40BF42
tetradic
#4240BF #BF407D #BDBF40 #40BF82
square
#4240BF #BF407D #BDBF40 #40BF82
split-complementary
#4240BF #BF8240 #7DBF40
monochromatic
#222163 #323191 #4240BF #6F6ECE #9D9CDE

Accessibility & contrast

On white

7.73
#4240BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4240BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240BF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240BF#FFFFFF#000000##FFFFFF
##4240BF1.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)
#0058C3
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4240bf;
/* rgb */ color: rgb(66, 64, 191);
/* oklch */ color: oklch(45.8% 0.192 276.3);
Tailwind
colors: {
  custom: {
    50: '#8575d3',
    500: '#4240bf',
    950: '#000000',
  },
}
SCSS
$custom: #4240bf;
$custom-light: #8575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4240bf",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 240.945,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.45786,
    "c": 0.19247,
    "h": 276.3
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

primary
#4240BF
secondary
#C9CA91
accent
#D94ED7
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4240BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4240BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva