#4F45AA#4F45AA

#4F45AA is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.8% C 0.156 H 282.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#4F45AA
RGBrgb(79, 69, 170)
HSLhsl(246, 42%, 47%)
HSVhsv(246, 59%, 67%)
CMYKcmyk(53.5%, 59.4%, 0%, 33.3%)
CIE-LABlab(35.64, 32.42, -53.08)
CIE-LCHlch(35.64, 62.20, 301.41°)
OKLaboklab(45.85% 0.0346 -0.1521)
OKLCHoklch(45.85% 0.156 282.8)
XYZxyz(12.6061, 8.8201, 39.0606)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F45AA #A0AA45
analogous
#456EAA #4F45AA #8245AA
triadic
#4F45AA #AA4F45 #45AA4F
tetradic
#4F45AA #AA456E #A0AA45 #45AA82
square
#4F45AA #AA456E #A0AA45 #45AA82
split-complementary
#4F45AA #AA8245 #6EAA45
monochromatic
#272253 #3B337E #4F45AA #736AC2 #9C95D4

Accessibility & contrast

On white

7.60
#4F45AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4F45AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F45AA
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F45AA#FFFFFF#000000##FFFFFF
##4F45AA1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#295D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4f45aa;
/* rgb */ color: rgb(79, 69, 170);
/* oklch */ color: oklch(45.8% 0.156 282.8);
Tailwind
colors: {
  custom: {
    50: '#8879c4',
    500: '#4f45aa',
    950: '#000000',
  },
}
SCSS
$custom: #4f45aa;
$custom-light: #8879c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f45aa",
  "rgb": {
    "r": 79,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 245.941,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.15597,
    "h": 282.8
  },
  "luminance": 0.08821
}

Semantic roles & 50–950 ramp

primary
#4F45AA
secondary
#BBC08B
accent
#D256C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4F45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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