#4048CB#4048CB

#4048CB is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.1% C 0.199 H 273.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#4048CB
RGBrgb(64, 72, 203)
HSLhsl(237, 57%, 52%)
HSVhsv(237, 68%, 80%)
CMYKcmyk(68.5%, 64.5%, 0%, 20.4%)
CIE-LABlab(37.91, 39.09, -68.83)
CIE-LCHlch(37.91, 79.16, 299.59°)
OKLaboklab(48.06% 0.012 -0.1987)
OKLCHoklch(48.06% 0.199 273.4)
XYZxyz(15.2076, 10.0351, 57.6239)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048CB #CBC340
analogous
#408DCB #4048CB #7E40CB
triadic
#4048CB #CB4048 #48CB40
tetradic
#4048CB #CB408D #CBC340 #40CB7E
square
#4048CB #CB408D #CBC340 #40CB7E
split-complementary
#4048CB #CB7E40 #8DCB40
monochromatic
#1F2472 #2C33A2 #4048CB #7076D8 #A0A4E5

Accessibility & contrast

On white

6.98
#4048CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4048CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048CB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048CB#FFFFFF#000000##FFFFFF
##4048CB1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006A83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4048cb;
/* rgb */ color: rgb(64, 72, 203);
/* oklch */ color: oklch(48.1% 0.199 273.4);
Tailwind
colors: {
  custom: {
    50: '#867bdc',
    500: '#4048cb',
    950: '#000000',
  },
}
SCSS
$custom: #4048cb;
$custom-light: #867bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4048cb",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 236.547,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4806,
    "c": 0.1991,
    "h": 273.4
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#4048CB
secondary
#D2CE95
accent
#D847E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4048CB

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

Preview Lab → · Contrast checker → · Palette generator →

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