#5678F2#5678F2

#5678F2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.2% C 0.187 H 268.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5678F2
RGBrgb(86, 120, 242)
HSLhsl(227, 86%, 64%)
HSVhsv(227, 64%, 95%)
CMYKcmyk(64.5%, 50.4%, 0%, 5.1%)
CIE-LABlab(53.84, 25.94, -65.04)
CIE-LCHlch(53.84, 70.02, 291.74°)
OKLaboklab(61.16% -0.0044 -0.1866)
OKLCHoklch(61.16% 0.187 268.6)
XYZxyz(26.5758, 21.8197, 86.7983)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5678F2 #F2D056
analogous
#56C6F2 #5678F2 #8256F2
triadic
#5678F2 #F25678 #78F256
tetradic
#5678F2 #F256C6 #F2D056 #56F282
square
#5678F2 #F256C6 #F2D056 #56F282
split-complementary
#5678F2 #F28256 #C6F256
monochromatic
#0F35BF #1D4BEE #5678F2 #8FA5F6 #C8D3FB

Accessibility & contrast

On white

3.91
#5678F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5678F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5678F2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5678F2#FFFFFF#000000##000000
##5678F21.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3088F6
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5678f2;
/* rgb */ color: rgb(86, 120, 242);
/* oklch */ color: oklch(61.2% 0.187 268.6);
Tailwind
colors: {
  custom: {
    50: '#959ef7',
    500: '#5678f2',
    950: '#000000',
  },
}
SCSS
$custom: #5678f2;
$custom-light: #959ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#5678f2",
  "rgb": {
    "r": 86,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 226.923,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61158,
    "c": 0.18662,
    "h": 268.6
  },
  "luminance": 0.21822
}

Semantic roles & 50–950 ramp

primary
#5678F2
secondary
#EDE1B7
accent
#B203E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5678F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5678F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva