#4048DB#4048DB

#4048DB is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.219 H 272.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#4048DB
RGBrgb(64, 72, 219)
HSLhsl(237, 68%, 55%)
HSVhsv(237, 71%, 86%)
CMYKcmyk(70.8%, 67.1%, 0%, 14.1%)
CIE-LABlab(39.31, 44.50, -75.76)
CIE-LCHlch(39.31, 87.86, 300.43°)
OKLaboklab(49.51% 0.0105 -0.219)
OKLCHoklch(49.51% 0.219 272.8)
XYZxyz(17.2136, 10.8375, 68.1888)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048DB #DBD340
analogous
#4096DB #4048DB #8540DB
triadic
#4048DB #DB4048 #48DB40
tetradic
#4048DB #DB4096 #DBD340 #40DB85
square
#4048DB #DB4096 #DBD340 #40DB85
split-complementary
#4048DB #DB8540 #96DB40
monochromatic
#191F87 #232BBB #4048DB #7379E5 #A7ABEE

Accessibility & contrast

On white

6.63
#4048DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4048DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048DB
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048DB#FFFFFF#000000##FFFFFF
##4048DB1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#0055D8
Tritanopia (blue-blind)
#00708C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4048db;
/* rgb */ color: rgb(64, 72, 219);
/* oklch */ color: oklch(49.5% 0.219 272.8);
Tailwind
colors: {
  custom: {
    50: '#8a7be7',
    500: '#4048db',
    950: '#000000',
  },
}
SCSS
$custom: #4048db;
$custom-light: #8a7be7;
$custom-dark: #000000;
JSON
{
  "hex": "#4048db",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 236.903,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49507,
    "c": 0.21926,
    "h": 272.8
  },
  "luminance": 0.10839
}

Semantic roles & 50–950 ramp

primary
#4048DB
secondary
#DCD89B
accent
#E23DEB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4048DB

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

Preview Lab → · Contrast checker → · Palette generator →

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