#4542B8#4542B8

#4542B8 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.180 H 277.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4542B8
RGBrgb(69, 66, 184)
HSLhsl(242, 47%, 49%)
HSVhsv(242, 64%, 72%)
CMYKcmyk(62.5%, 64.1%, 0%, 27.8%)
CIE-LABlab(35.24, 37.07, -62.06)
CIE-LCHlch(35.24, 72.29, 300.85°)
OKLaboklab(45.71% 0.024 -0.1788)
OKLCHoklch(45.71% 0.18 277.6)
XYZxyz(13.0514, 8.6213, 46.3144)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4542B8 #B5B842
analogous
#427AB8 #4542B8 #8042B8
triadic
#4542B8 #B84542 #42B845
tetradic
#4542B8 #B8427A #B5B842 #42B880
square
#4542B8 #B8427A #B5B842 #42B880
split-complementary
#4542B8 #B88042 #7AB842
monochromatic
#23225E #34328B #4542B8 #6F6DCB #9B9ADB

Accessibility & contrast

On white

7.71
#4542B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4542B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4542B8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4542B8#FFFFFF#000000##FFFFFF
##4542B81.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4542b8;
/* rgb */ color: rgb(69, 66, 184);
/* oklch */ color: oklch(45.7% 0.180 277.6);
Tailwind
colors: {
  custom: {
    50: '#8577ce',
    500: '#4542b8',
    950: '#000000',
  },
}
SCSS
$custom: #4542b8;
$custom-light: #8577ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4542b8",
  "rgb": {
    "r": 69,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 241.525,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.18037,
    "h": 277.6
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#4542B8
secondary
#C5C78F
accent
#D751D3
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4542B8

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

Preview Lab → · Contrast checker → · Palette generator →

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