#4055B2#4055B2

#4055B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.5% C 0.149 H 270.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#4055B2
RGBrgb(64, 85, 178)
HSLhsl(229, 47%, 47%)
HSVhsv(229, 64%, 70%)
CMYKcmyk(64%, 52.2%, 0%, 30.2%)
CIE-LABlab(39.24, 22.09, -52.04)
CIE-LCHlch(39.24, 56.54, 293.00°)
OKLaboklab(48.45% 0.001 -0.1493)
OKLCHoklch(48.45% 0.149 270.4)
XYZxyz(13.3960, 10.8002, 43.4895)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055B2 #B29D40
analogous
#408EB2 #4055B2 #6440B2
triadic
#4055B2 #B24055 #55B240
tetradic
#4055B2 #B2408E #B29D40 #40B264
square
#4055B2 #B2408E #B29D40 #40B264
split-complementary
#4055B2 #B26440 #8EB240
monochromatic
#202A58 #304085 #4055B2 #6779C8 #94A1D8

Accessibility & contrast

On white

6.65
#4055B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4055B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4055B2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4055B2#FFFFFF#000000##FFFFFF
##4055B21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4055b2;
/* rgb */ color: rgb(64, 85, 178);
/* oklch */ color: oklch(48.5% 0.149 270.4);
Tailwind
colors: {
  custom: {
    50: '#8184ca',
    500: '#4055b2',
    950: '#000000',
  },
}
SCSS
$custom: #4055b2;
$custom-light: #8184ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4055b2",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 228.947,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48451,
    "c": 0.14928,
    "h": 270.4
  },
  "luminance": 0.10801
}

Semantic roles & 50–950 ramp

primary
#4055B2
secondary
#C4B98A
accent
#BE51D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4055B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4055B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva