#4242CB#4242CB

#4242CB is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.2% C 0.205 H 275.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4242CB
RGBrgb(66, 66, 203)
HSLhsl(240, 57%, 53%)
HSVhsv(240, 67%, 80%)
CMYKcmyk(67.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(36.68, 42.97, -70.84)
CIE-LCHlch(36.68, 82.85, 301.24°)
OKLaboklab(47.2% 0.0184 -0.2046)
OKLCHoklch(47.2% 0.205 275.1)
XYZxyz(14.9709, 9.3651, 57.5070)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242CB #CBCB42
analogous
#4286CB #4242CB #8642CB
triadic
#4242CB #CB4242 #42CB42
tetradic
#4242CB #CB4286 #CBCB42 #42CB86
square
#4242CB #CB4286 #CBCB42 #42CB86
split-complementary
#4242CB #CB8642 #86CB42
monochromatic
#202073 #2D2DA3 #4242CB #7272D8 #A2A2E5

Accessibility & contrast

On white

7.31
#4242CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4242CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242CB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242CB#FFFFFF#000000##FFFFFF
##4242CB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0050C8
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4242cb;
/* rgb */ color: rgb(66, 66, 203);
/* oklch */ color: oklch(47.2% 0.205 275.1);
Tailwind
colors: {
  custom: {
    50: '#8877dc',
    500: '#4242cb',
    950: '#000000',
  },
}
SCSS
$custom: #4242cb;
$custom-light: #8877dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4242cb",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47201,
    "c": 0.20542,
    "h": 275.1
  },
  "luminance": 0.09366
}

Semantic roles & 50–950 ramp

primary
#4242CB
secondary
#D2D297
accent
#E048E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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