#4A42CF#4A42CF

#4A42CF is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.1% C 0.209 H 277.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4A42CF
RGBrgb(74, 66, 207)
HSLhsl(243, 59%, 54%)
HSVhsv(243, 68%, 81%)
CMYKcmyk(64.3%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.58, 45.30, -71.65)
CIE-LCHlch(37.58, 84.77, 302.30°)
OKLaboklab(48.1% 0.0277 -0.2067)
OKLCHoklch(48.1% 0.209 277.6)
XYZxyz(16.0311, 9.8559, 60.0770)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42CF #C7CF42
analogous
#4280CF #4A42CF #9042CF
triadic
#4A42CF #CF4A42 #42CF4A
tetradic
#4A42CF #CF4280 #C7CF42 #42CF90
square
#4A42CF #CF4280 #C7CF42 #42CF90
split-complementary
#4A42CF #CF9042 #80CF42
monochromatic
#241F78 #322BA9 #4A42CF #7973DB #A7A4E8

Accessibility & contrast

On white

7.07
#4A42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4A42CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42CF
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42CF#FFFFFF#000000##FFFFFF
##4A42CF1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a42cf;
/* rgb */ color: rgb(74, 66, 207);
/* oklch */ color: oklch(48.1% 0.209 277.6);
Tailwind
colors: {
  custom: {
    50: '#8c78df',
    500: '#4a42cf',
    950: '#000000',
  },
}
SCSS
$custom: #4a42cf;
$custom-light: #8c78df;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42cf",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 243.404,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48104,
    "c": 0.20859,
    "h": 277.6
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#4A42CF
secondary
#D1D598
accent
#E345DA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4A42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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