#4840AF#4840AF

#4840AF is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.170 H 280.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4840AF
RGBrgb(72, 64, 175)
HSLhsl(244, 46%, 47%)
HSVhsv(244, 63%, 69%)
CMYKcmyk(58.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.27, 35.82, -58.31)
CIE-LCHlch(34.27, 68.43, 301.56°)
OKLaboklab(44.83% 0.0303 -0.1677)
OKLCHoklch(44.83% 0.17 280.2)
XYZxyz(12.2413, 8.1388, 41.4750)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840AF #A7AF40
analogous
#4070AF #4840AF #8040AF
triadic
#4840AF #AF4840 #40AF48
tetradic
#4840AF #AF4070 #A7AF40 #40AF80
square
#4840AF #AF4070 #A7AF40 #40AF80
split-complementary
#4840AF #AF8040 #70AF40
monochromatic
#231F55 #363082 #4840AF #6C65C7 #9792D7

Accessibility & contrast

On white

7.99
#4840AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4840AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840AF
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840AF#FFFFFF#000000##FFFFFF
##4840AF1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#035C71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4840af;
/* rgb */ color: rgb(72, 64, 175);
/* oklch */ color: oklch(44.8% 0.170 280.2);
Tailwind
colors: {
  custom: {
    50: '#8575c8',
    500: '#4840af',
    950: '#000000',
  },
}
SCSS
$custom: #4840af;
$custom-light: #8575c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4840af",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 244.324,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44825,
    "c": 0.17038,
    "h": 280.2
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#4840AF
secondary
#BEC388
accent
#D652CD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4840AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4840AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva