#4048BC#4048BC

#4048BC is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.8% C 0.180 H 274.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4048BC
RGBrgb(64, 72, 188)
HSLhsl(236, 49%, 49%)
HSVhsv(236, 66%, 74%)
CMYKcmyk(66%, 61.7%, 0%, 26.3%)
CIE-LABlab(36.66, 33.94, -62.12)
CIE-LCHlch(36.66, 70.79, 298.65°)
OKLaboklab(46.76% 0.0128 -0.179)
OKLCHoklch(46.76% 0.18 274.1)
XYZxyz(13.5058, 9.3544, 48.6610)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048BC #BCB440
analogous
#4086BC #4048BC #7640BC
triadic
#4048BC #BC4048 #48BC40
tetradic
#4048BC #BC4086 #BCB440 #40BC76
square
#4048BC #BC4086 #BCB440 #40BC76
split-complementary
#4048BC #BC7640 #86BC40
monochromatic
#212561 #30378E #4048BC #6C72CD #9A9EDD

Accessibility & contrast

On white

7.31
#4048BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4048BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048BC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048BC#FFFFFF#000000##FFFFFF
##4048BC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4048bc;
/* rgb */ color: rgb(64, 72, 188);
/* oklch */ color: oklch(46.8% 0.180 274.1);
Tailwind
colors: {
  custom: {
    50: '#837bd1',
    500: '#4048bc',
    950: '#000000',
  },
}
SCSS
$custom: #4048bc;
$custom-light: #837bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4048bc",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 236.129,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46758,
    "c": 0.17951,
    "h": 274.1
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#4048BC
secondary
#C9C58F
accent
#D04FD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4048BC

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

Preview Lab → · Contrast checker → · Palette generator →

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