#4240CA#4240CA

#4240CA is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.8% C 0.206 H 275.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#4240CA
RGBrgb(66, 64, 202)
HSLhsl(241, 57%, 52%)
HSVhsv(241, 68%, 79%)
CMYKcmyk(67.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.15, 43.82, -71.12)
CIE-LCHlch(36.15, 83.54, 301.64°)
OKLaboklab(46.79% 0.0199 -0.2054)
OKLCHoklch(46.79% 0.206 275.5)
XYZxyz(14.7373, 9.0880, 56.8432)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240CA #C8CA40
analogous
#4083CA #4240CA #8740CA
triadic
#4240CA #CA4240 #40CA42
tetradic
#4240CA #CA4083 #C8CA40 #40CA87
square
#4240CA #CA4083 #C8CA40 #40CA87
split-complementary
#4240CA #CA8740 #83CA40
monochromatic
#201F70 #2E2CA0 #4240CA #7170D7 #A1A0E5

Accessibility & contrast

On white

7.45
#4240CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4240CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240CA
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240CA#FFFFFF#000000##FFFFFF
##4240CA1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4240ca;
/* rgb */ color: rgb(66, 64, 202);
/* oklch */ color: oklch(46.8% 0.206 275.5);
Tailwind
colors: {
  custom: {
    50: '#8876db',
    500: '#4240ca',
    950: '#000000',
  },
}
SCSS
$custom: #4240ca;
$custom-light: #8876db;
$custom-dark: #000000;
JSON
{
  "hex": "#4240ca",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 240.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46794,
    "c": 0.20637,
    "h": 275.5
  },
  "luminance": 0.09089
}

Semantic roles & 50–950 ramp

primary
#4240CA
secondary
#D0D195
accent
#E048DE
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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