#4F45A2#4F45A2

#4F45A2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.2% C 0.145 H 283.8°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#4F45A2
RGBrgb(79, 69, 162)
HSLhsl(246, 40%, 45%)
HSVhsv(246, 57%, 64%)
CMYKcmyk(51.2%, 57.4%, 0%, 36.5%)
CIE-LABlab(35.06, 29.87, -49.23)
CIE-LCHlch(35.06, 57.58, 301.25°)
OKLaboklab(45.24% 0.0347 -0.1407)
OKLCHoklch(45.24% 0.145 283.8)
XYZxyz(11.8722, 8.5265, 35.1956)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F45A2 #98A245
analogous
#4569A2 #4F45A2 #7E45A2
triadic
#4F45A2 #A24F45 #45A24F
tetradic
#4F45A2 #A24569 #98A245 #45A27E
square
#4F45A2 #A24569 #98A245 #45A27E
split-complementary
#4F45A2 #A27E45 #69A245
monochromatic
#25204C #3A3377 #4F45A2 #7066BE #9891D0

Accessibility & contrast

On white

7.76
#4F45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4F45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F45A2
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F45A2#FFFFFF#000000##FFFFFF
##4F45A21.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0255A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#305A6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4f45a2;
/* rgb */ color: rgb(79, 69, 162);
/* oklch */ color: oklch(45.2% 0.145 283.8);
Tailwind
colors: {
  custom: {
    50: '#8779be',
    500: '#4f45a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f45a2;
$custom-light: #8779be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f45a2",
  "rgb": {
    "r": 79,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 246.452,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45237,
    "c": 0.14496,
    "h": 283.8
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#4F45A2
secondary
#B6BC87
accent
#D058C3
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4F45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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