#4048BF#4048BF

#4048BF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.0% C 0.183 H 274.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4048BF
RGBrgb(64, 72, 191)
HSLhsl(236, 50%, 50%)
HSVhsv(236, 66%, 75%)
CMYKcmyk(66.5%, 62.3%, 0%, 25.1%)
CIE-LABlab(36.90, 34.98, -63.48)
CIE-LCHlch(36.90, 72.48, 298.85°)
OKLaboklab(47.01% 0.0127 -0.183)
OKLCHoklch(47.01% 0.183 274)
XYZxyz(13.8326, 9.4851, 50.3819)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048BF #BFB740
analogous
#4088BF #4048BF #7740BF
triadic
#4048BF #BF4048 #48BF40
tetradic
#4048BF #BF4088 #BFB740 #40BF77
square
#4048BF #BF4088 #BFB740 #40BF77
split-complementary
#4048BF #BF7740 #88BF40
monochromatic
#212563 #313791 #4048BF #6E74CE #9CA0DE

Accessibility & contrast

On white

7.25
#4048BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4048BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048BF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048BF#FFFFFF#000000##FFFFFF
##4048BF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4048bf;
/* rgb */ color: rgb(64, 72, 191);
/* oklch */ color: oklch(47.0% 0.183 274.0);
Tailwind
colors: {
  custom: {
    50: '#847bd3',
    500: '#4048bf',
    950: '#000000',
  },
}
SCSS
$custom: #4048bf;
$custom-light: #847bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4048bf",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 236.22,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47014,
    "c": 0.18348,
    "h": 274
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#4048BF
secondary
#CAC691
accent
#D14ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4048BF

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

Preview Lab → · Contrast checker → · Palette generator →

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