#4542B2#4542B2

#4542B2 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.172 H 278.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4542B2
RGBrgb(69, 66, 178)
HSLhsl(242, 46%, 48%)
HSVhsv(242, 63%, 70%)
CMYKcmyk(61.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(34.75, 35.07, -59.31)
CIE-LCHlch(34.75, 68.91, 300.60°)
OKLaboklab(45.2% 0.0244 -0.1707)
OKLCHoklch(45.2% 0.172 278.1)
XYZxyz(12.4358, 8.3751, 43.0721)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4542B2 #AFB242
analogous
#4277B2 #4542B2 #7D42B2
triadic
#4542B2 #B24542 #42B245
tetradic
#4542B2 #B24277 #AFB242 #42B27D
square
#4542B2 #B24277 #AFB242 #42B27D
split-complementary
#4542B2 #B27D42 #77B242
monochromatic
#222159 #343185 #4542B2 #6C6AC8 #9896D8

Accessibility & contrast

On white

7.85
#4542B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4542B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4542B2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4542B2#FFFFFF#000000##FFFFFF
##4542B21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4542b2;
/* rgb */ color: rgb(69, 66, 178);
/* oklch */ color: oklch(45.2% 0.172 278.1);
Tailwind
colors: {
  custom: {
    50: '#8477ca',
    500: '#4542b2',
    950: '#000000',
  },
}
SCSS
$custom: #4542b2;
$custom-light: #8477ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4542b2",
  "rgb": {
    "r": 69,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 241.607,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45195,
    "c": 0.17245,
    "h": 278.1
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#4542B2
secondary
#C2C48C
accent
#D652D2
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4542B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4542B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva