#4242CF#4242CF

#4242CF is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.6% C 0.210 H 274.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#4242CF
RGBrgb(66, 66, 207)
HSLhsl(240, 59%, 54%)
HSVhsv(240, 68%, 81%)
CMYKcmyk(68.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.04, 44.29, -72.57)
CIE-LCHlch(37.04, 85.02, 301.39°)
OKLaboklab(47.57% 0.0179 -0.2096)
OKLCHoklch(47.57% 0.21 274.9)
XYZxyz(15.4537, 9.5583, 60.0499)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242CF #CFCF42
analogous
#4288CF #4242CF #8842CF
triadic
#4242CF #CF4242 #42CF42
tetradic
#4242CF #CF4288 #CFCF42 #42CF88
square
#4242CF #CF4288 #CFCF42 #42CF88
split-complementary
#4242CF #CF8842 #88CF42
monochromatic
#1F1F78 #2B2BA9 #4242CF #7373DB #A4A4E8

Accessibility & contrast

On white

7.21
#4242CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4242CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242CF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242CF#FFFFFF#000000##FFFFFF
##4242CF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4242cf;
/* rgb */ color: rgb(66, 66, 207);
/* oklch */ color: oklch(47.6% 0.210 274.9);
Tailwind
colors: {
  custom: {
    50: '#8977df',
    500: '#4242cf',
    950: '#000000',
  },
}
SCSS
$custom: #4242cf;
$custom-light: #8977df;
$custom-dark: #000000;
JSON
{
  "hex": "#4242cf",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 240,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4757,
    "c": 0.21041,
    "h": 274.9
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#4242CF
secondary
#D5D598
accent
#E345E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4242CF

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

Preview Lab → · Contrast checker → · Palette generator →

#4242CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva