#4050AF#4050AF

#4050AF is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.152 H 272.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#4050AF
RGBrgb(64, 80, 175)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 69%)
CMYKcmyk(63.4%, 54.3%, 0%, 31.4%)
CIE-LABlab(37.70, 24.27, -52.76)
CIE-LCHlch(37.70, 58.08, 294.70°)
OKLaboklab(47.22% 0.0056 -0.1514)
OKLCHoklch(47.22% 0.152 272.1)
XYZxyz(12.7183, 9.9214, 41.7939)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050AF #AF9F40
analogous
#4088AF #4050AF #6740AF
triadic
#4050AF #AF4050 #50AF40
tetradic
#4050AF #AF4088 #AF9F40 #40AF67
square
#4050AF #AF4088 #AF9F40 #40AF67
split-complementary
#4050AF #AF6740 #88AF40
monochromatic
#1F2755 #303C82 #4050AF #6573C7 #929CD7

Accessibility & contrast

On white

7.04
#4050AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4050AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4050AF
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050AF#FFFFFF#000000##FFFFFF
##4050AF1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5EB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4050af;
/* rgb */ color: rgb(64, 80, 175);
/* oklch */ color: oklch(47.2% 0.152 272.1);
Tailwind
colors: {
  custom: {
    50: '#8080c8',
    500: '#4050af',
    950: '#000000',
  },
}
SCSS
$custom: #4050af;
$custom-light: #8080c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4050af",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 175
  },
  "hsl": {
    "h": 231.351,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.15155,
    "h": 272.1
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

primary
#4050AF
secondary
#C3BA88
accent
#C352D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050AF

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

Preview Lab → · Contrast checker → · Palette generator →

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