#4240BE#4240BE

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

Color values

HEX#4240BE
RGBrgb(66, 64, 190)
HSLhsl(241, 50%, 50%)
HSVhsv(241, 66%, 75%)
CMYKcmyk(65.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(35.09, 39.85, -65.86)
CIE-LCHlch(35.09, 76.97, 301.17°)
OKLaboklab(45.7% 0.0213 -0.19)
OKLCHoklch(45.7% 0.191 276.4)
XYZxyz(13.3714, 8.5416, 49.6493)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240BE #BCBE40
analogous
#407DBE #4240BE #8140BE
triadic
#4240BE #BE4240 #40BE42
tetradic
#4240BE #BE407D #BCBE40 #40BE81
square
#4240BE #BE407D #BCBE40 #40BE81
split-complementary
#4240BE #BE8140 #7DBE40
monochromatic
#222162 #323190 #4240BE #6F6DCE #9C9BDD

Accessibility & contrast

On white

7.75
#4240BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4240BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240BE
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240BE#FFFFFF#000000##FFFFFF
##4240BE1.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)
#0058C2
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4240be;
/* rgb */ color: rgb(66, 64, 190);
/* oklch */ color: oklch(45.7% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#8575d3',
    500: '#4240be',
    950: '#000000',
  },
}
SCSS
$custom: #4240be;
$custom-light: #8575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4240be",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 240.952,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45696,
    "c": 0.19119,
    "h": 276.4
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4240BE

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

Preview Lab → · Contrast checker → · Palette generator →

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