#4048A2#4048A2

#4048A2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.144 H 275.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4048A2
RGBrgb(64, 72, 162)
HSLhsl(235, 43%, 44%)
HSVhsv(235, 60%, 64%)
CMYKcmyk(60.5%, 55.6%, 0%, 36.5%)
CIE-LABlab(34.67, 24.91, -49.92)
CIE-LCHlch(34.67, 55.79, 296.52°)
OKLaboklab(44.65% 0.0129 -0.1432)
OKLCHoklch(44.65% 0.144 275.1)
XYZxyz(10.9512, 8.3325, 35.2067)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048A2 #A29A40
analogous
#4079A2 #4048A2 #6940A2
triadic
#4048A2 #A24048 #48A240
tetradic
#4048A2 #A24079 #A29A40 #40A269
square
#4048A2 #A24079 #A29A40 #40A269
split-complementary
#4048A2 #A26940 #79A240
monochromatic
#1D214A #2F3576 #4048A2 #5F67C0 #8B91D1

Accessibility & contrast

On white

7.88
#4048A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4048A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048A2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048A2#FFFFFF#000000##FFFFFF
##4048A21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0756A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4048a2;
/* rgb */ color: rgb(64, 72, 162);
/* oklch */ color: oklch(44.7% 0.144 275.1);
Tailwind
colors: {
  custom: {
    50: '#7e7abe',
    500: '#4048a2',
    950: '#000000',
  },
}
SCSS
$custom: #4048a2;
$custom-light: #7e7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4048a2",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 235.102,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44654,
    "c": 0.14375,
    "h": 275.1
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#4048A2
secondary
#BCB782
accent
#C955D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #4048A2

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

Preview Lab → · Contrast checker → · Palette generator →

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