#4F45B2#4F45B2

#4F45B2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.5% C 0.167 H 281.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#4F45B2
RGBrgb(79, 69, 178)
HSLhsl(246, 44%, 48%)
HSVhsv(246, 61%, 70%)
CMYKcmyk(55.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(36.24, 34.98, -56.86)
CIE-LCHlch(36.24, 66.76, 301.60°)
OKLaboklab(46.48% 0.0343 -0.1632)
OKLCHoklch(46.48% 0.167 281.9)
XYZxyz(13.3860, 9.1320, 43.1681)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F45B2 #A8B245
analogous
#4571B2 #4F45B2 #8545B2
triadic
#4F45B2 #B24F45 #45B24F
tetradic
#4F45B2 #B24571 #A8B245 #45B285
square
#4F45B2 #B24571 #A8B245 #45B285
split-complementary
#4F45B2 #B28545 #71B245
monochromatic
#28235A #3B3486 #4F45B2 #766EC7 #9F9AD8

Accessibility & contrast

On white

7.43
#4F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4F45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F45B2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F45B2#FFFFFF#000000##FFFFFF
##4F45B21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#1F5F75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f45b2;
/* rgb */ color: rgb(79, 69, 178);
/* oklch */ color: oklch(46.5% 0.167 281.9);
Tailwind
colors: {
  custom: {
    50: '#8979ca',
    500: '#4f45b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f45b2;
$custom-light: #8979ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f45b2",
  "rgb": {
    "r": 79,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 245.505,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.16676,
    "h": 281.9
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

primary
#4F45B2
secondary
#BFC48F
accent
#D454C8
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4F45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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