#4242DB#4242DB

#4242DB is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.225 H 274.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4242DB
RGBrgb(66, 66, 219)
HSLhsl(240, 68%, 56%)
HSVhsv(240, 70%, 86%)
CMYKcmyk(69.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(38.14, 48.22, -77.67)
CIE-LCHlch(38.14, 91.42, 301.83°)
OKLaboklab(48.7% 0.0163 -0.2245)
OKLCHoklch(48.7% 0.225 274.2)
XYZxyz(16.9769, 10.1675, 68.0719)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242DB #DBDB42
analogous
#428EDB #4242DB #8E42DB
triadic
#4242DB #DB4242 #42DB42
tetradic
#4242DB #DB428E #DBDB42 #42DB8E
square
#4242DB #DB428E #DBDB42 #42DB8E
split-complementary
#4242DB #DB8E42 #8EDB42
monochromatic
#1A1A89 #2424BC #4242DB #7575E5 #A9A9EF

Accessibility & contrast

On white

6.92
#4242DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4242DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4242DB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242DB#FFFFFF#000000##FFFFFF
##4242DB1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4242db;
/* rgb */ color: rgb(66, 66, 219);
/* oklch */ color: oklch(48.7% 0.225 274.2);
Tailwind
colors: {
  custom: {
    50: '#8b78e7',
    500: '#4242db',
    950: '#000000',
  },
}
SCSS
$custom: #4242db;
$custom-light: #8b78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4242db",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 240,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.22513,
    "h": 274.2
  },
  "luminance": 0.10169
}

Semantic roles & 50–950 ramp

primary
#4242DB
secondary
#DCDC9D
accent
#EB3DEB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4242DB

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

Preview Lab → · Contrast checker → · Palette generator →

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