#4240BD#4240BD

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

Color values

HEX#4240BD
RGBrgb(66, 64, 189)
HSLhsl(241, 49%, 50%)
HSVhsv(241, 66%, 74%)
CMYKcmyk(65.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.00, 39.51, -65.41)
CIE-LCHlch(35.00, 76.42, 301.13°)
OKLaboklab(45.61% 0.0214 -0.1887)
OKLCHoklch(45.61% 0.19 276.5)
XYZxyz(13.2625, 8.4980, 49.0756)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240BD #BBBD40
analogous
#407DBD #4240BD #8140BD
triadic
#4240BD #BD4240 #40BD42
tetradic
#4240BD #BD407D #BBBD40 #40BD81
square
#4240BD #BD407D #BBBD40 #40BD81
split-complementary
#4240BD #BD8140 #7DBD40
monochromatic
#222162 #32318F #4240BD #6E6DCD #9C9ADD

Accessibility & contrast

On white

7.78
#4240BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4240BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240BD
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240BD#FFFFFF#000000##FFFFFF
##4240BD1.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)
#0058C1
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4240bd;
/* rgb */ color: rgb(66, 64, 189);
/* oklch */ color: oklch(45.6% 0.190 276.5);
Tailwind
colors: {
  custom: {
    50: '#8575d2',
    500: '#4240bd',
    950: '#000000',
  },
}
SCSS
$custom: #4240bd;
$custom-light: #8575d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4240bd",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 240.96,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.18991,
    "h": 276.5
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#4240BD
secondary
#C8C990
accent
#D94FD7
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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