#4740AF#4740AF

#4740AF is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.171 H 279.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#4740AF
RGBrgb(71, 64, 175)
HSLhsl(244, 46%, 47%)
HSVhsv(244, 63%, 69%)
CMYKcmyk(59.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.19, 35.65, -58.44)
CIE-LCHlch(34.19, 68.45, 301.38°)
OKLaboklab(44.75% 0.029 -0.1681)
OKLCHoklch(44.75% 0.171 279.8)
XYZxyz(12.1673, 8.1007, 41.4715)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4740AF #A8AF40
analogous
#4071AF #4740AF #7F40AF
triadic
#4740AF #AF4740 #40AF47
tetradic
#4740AF #AF4071 #A8AF40 #40AF7F
square
#4740AF #AF4071 #A8AF40 #40AF7F
split-complementary
#4740AF #AF7F40 #71AF40
monochromatic
#231F55 #353082 #4740AF #6C65C7 #9792D7

Accessibility & contrast

On white

8.01
#4740AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4740AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4740AF
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4740AF#FFFFFF#000000##FFFFFF
##4740AF1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4740af;
/* rgb */ color: rgb(71, 64, 175);
/* oklch */ color: oklch(44.7% 0.171 279.8);
Tailwind
colors: {
  custom: {
    50: '#8575c8',
    500: '#4740af',
    950: '#000000',
  },
}
SCSS
$custom: #4740af;
$custom-light: #8575c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4740af",
  "rgb": {
    "r": 71,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 243.784,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44748,
    "c": 0.17057,
    "h": 279.8
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#4740AF
secondary
#BFC388
accent
#D652CE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4740AF

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

Preview Lab → · Contrast checker → · Palette generator →

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