#4048AF#4048AF

#4048AF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.7% C 0.162 H 274.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#4048AF
RGBrgb(64, 72, 175)
HSLhsl(236, 46%, 47%)
HSVhsv(236, 63%, 69%)
CMYKcmyk(63.4%, 58.9%, 0%, 31.4%)
CIE-LABlab(35.63, 29.43, -56.11)
CIE-LCHlch(35.63, 63.36, 297.68°)
OKLaboklab(45.68% 0.0131 -0.1614)
OKLCHoklch(45.68% 0.162 274.6)
XYZxyz(12.1670, 8.8189, 41.6102)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048AF #AFA740
analogous
#4080AF #4048AF #7040AF
triadic
#4048AF #AF4048 #48AF40
tetradic
#4048AF #AF4080 #AFA740 #40AF70
square
#4048AF #AF4080 #AFA740 #40AF70
split-complementary
#4048AF #AF7040 #80AF40
monochromatic
#1F2355 #303682 #4048AF #656CC7 #9297D7

Accessibility & contrast

On white

7.60
#4048AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4048AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048AF
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048AF#FFFFFF#000000##FFFFFF
##4048AF1.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)
#0059B2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4048af;
/* rgb */ color: rgb(64, 72, 175);
/* oklch */ color: oklch(45.7% 0.162 274.6);
Tailwind
colors: {
  custom: {
    50: '#817bc8',
    500: '#4048af',
    950: '#000000',
  },
}
SCSS
$custom: #4048af;
$custom-light: #817bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4048af",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 235.676,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4568,
    "c": 0.16193,
    "h": 274.6
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#4048AF
secondary
#C3BE88
accent
#CD52D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4048AF

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

Preview Lab → · Contrast checker → · Palette generator →

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