#4240B2#4240B2

#4240B2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.176 H 277.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4240B2
RGBrgb(66, 64, 178)
HSLhsl(241, 47%, 47%)
HSVhsv(241, 64%, 70%)
CMYKcmyk(62.9%, 64%, 0%, 30.2%)
CIE-LABlab(34.06, 35.83, -60.45)
CIE-LCHlch(34.06, 70.27, 300.66°)
OKLaboklab(44.64% 0.0224 -0.1741)
OKLCHoklch(44.64% 0.176 277.3)
XYZxyz(12.1134, 8.0384, 43.0241)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240B2 #B0B240
analogous
#4077B2 #4240B2 #7B40B2
triadic
#4240B2 #B24240 #40B242
tetradic
#4240B2 #B24077 #B0B240 #40B27B
square
#4240B2 #B24077 #B0B240 #40B27B
split-complementary
#4240B2 #B27B40 #77B240
monochromatic
#212058 #313085 #4240B2 #6967C8 #9594D8

Accessibility & contrast

On white

8.05
#4240B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4240B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240B2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240B2#FFFFFF#000000##FFFFFF
##4240B21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4240b2;
/* rgb */ color: rgb(66, 64, 178);
/* oklch */ color: oklch(44.6% 0.176 277.3);
Tailwind
colors: {
  custom: {
    50: '#8375ca',
    500: '#4240b2',
    950: '#000000',
  },
}
SCSS
$custom: #4240b2;
$custom-light: #8375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4240b2",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 241.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44635,
    "c": 0.17557,
    "h": 277.3
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#4240B2
secondary
#C3C48A
accent
#D751D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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