#4A42CB#4A42CB

#4A42CB is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.7% C 0.204 H 278.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#4A42CB
RGBrgb(74, 66, 203)
HSLhsl(244, 57%, 53%)
HSVhsv(244, 67%, 80%)
CMYKcmyk(63.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.23, 44.01, -69.91)
CIE-LCHlch(37.23, 82.61, 302.19°)
OKLaboklab(47.74% 0.0282 -0.2017)
OKLCHoklch(47.74% 0.204 278)
XYZxyz(15.5483, 9.6628, 57.5341)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42CB #C3CB42
analogous
#427ECB #4A42CB #8F42CB
triadic
#4A42CB #CB4A42 #42CB4A
tetradic
#4A42CB #CB427E #C3CB42 #42CB8F
square
#4A42CB #CB427E #C3CB42 #42CB8F
split-complementary
#4A42CB #CB8F42 #7ECB42
monochromatic
#242073 #342DA3 #4A42CB #7872D8 #A6A2E5

Accessibility & contrast

On white

7.16
#4A42CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4A42CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42CB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42CB#FFFFFF#000000##FFFFFF
##4A42CB1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a42cb;
/* rgb */ color: rgb(74, 66, 203);
/* oklch */ color: oklch(47.7% 0.204 278.0);
Tailwind
colors: {
  custom: {
    50: '#8b77dc',
    500: '#4a42cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a42cb;
$custom-light: #8b77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42cb",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 243.504,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47743,
    "c": 0.20362,
    "h": 278
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#4A42CB
secondary
#CFD297
accent
#E048D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4A42CB

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

Preview Lab → · Contrast checker → · Palette generator →

#4A42CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva