#4048B3#4048B3

#4048B3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.0% C 0.167 H 274.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4048B3
RGBrgb(64, 72, 179)
HSLhsl(236, 47%, 48%)
HSVhsv(236, 64%, 70%)
CMYKcmyk(64.2%, 59.8%, 0%, 29.8%)
CIE-LABlab(35.94, 30.82, -57.98)
CIE-LCHlch(35.94, 65.67, 298.00°)
OKLaboklab(46.01% 0.0131 -0.1669)
OKLCHoklch(46.01% 0.167 274.5)
XYZxyz(12.5657, 8.9783, 43.7099)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048B3 #B3AB40
analogous
#4081B3 #4048B3 #7140B3
triadic
#4048B3 #B34048 #48B340
tetradic
#4048B3 #B34081 #B3AB40 #40B371
square
#4048B3 #B34081 #B3AB40 #40B371
split-complementary
#4048B3 #B37140 #81B340
monochromatic
#202459 #303686 #4048B3 #676EC9 #9499D9

Accessibility & contrast

On white

7.51
#4048B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4048B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048B3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048B3#FFFFFF#000000##FFFFFF
##4048B31.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4048b3;
/* rgb */ color: rgb(64, 72, 179);
/* oklch */ color: oklch(46.0% 0.167 274.5);
Tailwind
colors: {
  custom: {
    50: '#827bcb',
    500: '#4048b3',
    950: '#000000',
  },
}
SCSS
$custom: #4048b3;
$custom-light: #827bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4048b3",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 179
  },
  "hsl": {
    "h": 235.826,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46007,
    "c": 0.1674,
    "h": 274.5
  },
  "luminance": 0.08979
}

Semantic roles & 50–950 ramp

primary
#4048B3
secondary
#C4C08A
accent
#CE51D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4048B3

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

Preview Lab → · Contrast checker → · Palette generator →

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