#4B40AF#4B40AF

#4B40AF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.170 H 281.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#4B40AF
RGBrgb(75, 64, 175)
HSLhsl(246, 46%, 47%)
HSVhsv(246, 63%, 69%)
CMYKcmyk(57.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.51, 36.34, -57.90)
CIE-LCHlch(34.51, 68.36, 302.12°)
OKLaboklab(45.06% 0.0342 -0.1664)
OKLCHoklch(45.06% 0.17 281.6)
XYZxyz(12.4705, 8.2570, 41.4858)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40AF #A4AF40
analogous
#406DAF #4B40AF #8340AF
triadic
#4B40AF #AF4B40 #40AF4B
tetradic
#4B40AF #AF406D #A4AF40 #40AF83
square
#4B40AF #AF406D #A4AF40 #40AF83
split-complementary
#4B40AF #AF8340 #6DAF40
monochromatic
#251F55 #383082 #4B40AF #6F65C7 #9992D7

Accessibility & contrast

On white

7.92
#4B40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4B40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40AF
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40AF#FFFFFF#000000##FFFFFF
##4B40AF1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#165B71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4b40af;
/* rgb */ color: rgb(75, 64, 175);
/* oklch */ color: oklch(45.1% 0.170 281.6);
Tailwind
colors: {
  custom: {
    50: '#8775c8',
    500: '#4b40af',
    950: '#000000',
  },
}
SCSS
$custom: #4b40af;
$custom-light: #8775c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40af",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 245.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.16987,
    "h": 281.6
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#4B40AF
secondary
#BDC388
accent
#D652C9
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4B40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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