#3B54C6#3B54C6

#3B54C6 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.179 H 269.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#3B54C6
RGBrgb(59, 84, 198)
HSLhsl(229, 55%, 50%)
HSVhsv(229, 70%, 78%)
CMYKcmyk(70.2%, 57.6%, 0%, 22.4%)
CIE-LABlab(40.16, 29.12, -62.27)
CIE-LCHlch(40.16, 68.74, 295.06°)
OKLaboklab(49.52% -0.0021 -0.1795)
OKLCHoklch(49.52% 0.179 269.3)
XYZxyz(15.1635, 11.3462, 54.8060)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B54C6 #C6AD3B
analogous
#3B99C6 #3B54C6 #683BC6
triadic
#3B54C6 #C63B54 #54C63B
tetradic
#3B54C6 #C63B99 #C6AD3B #3BC668
square
#3B54C6 #C63B99 #C6AD3B #3BC668
split-complementary
#3B54C6 #C6683B #99C63B
monochromatic
#1E2C68 #2C3F98 #3B54C6 #6A7DD4 #9AA7E2

Accessibility & contrast

On white

6.42
#3B54C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3B54C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B54C6
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B54C6#FFFFFF#000000##FFFFFF
##3B54C61.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CA
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3b54c6;
/* rgb */ color: rgb(59, 84, 198);
/* oklch */ color: oklch(49.5% 0.179 269.3);
Tailwind
colors: {
  custom: {
    50: '#8283d8',
    500: '#3b54c6',
    950: '#000000',
  },
}
SCSS
$custom: #3b54c6;
$custom-light: #8283d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b54c6",
  "rgb": {
    "r": 59,
    "g": 84,
    "b": 198
  },
  "hsl": {
    "h": 229.209,
    "s": 54.941,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49524,
    "c": 0.17949,
    "h": 269.3
  },
  "luminance": 0.11348
}

Semantic roles & 50–950 ramp

primary
#3B54C6
secondary
#CDC28F
accent
#C44ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3B54C6

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

Preview Lab → · Contrast checker → · Palette generator →

#3B54C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva