#5F7BE4#5F7BE4

#5F7BE4 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.3% C 0.161 H 269.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F7BE4
RGBrgb(95, 123, 228)
HSLhsl(227, 71%, 63%)
HSVhsv(227, 58%, 89%)
CMYKcmyk(58.3%, 46.1%, 0%, 10.6%)
CIE-LABlab(54.24, 21.00, -56.55)
CIE-LCHlch(54.24, 60.33, 290.37°)
OKLaboklab(61.32% -0.0003 -0.1614)
OKLCHoklch(61.32% 0.161 269.9)
XYZxyz(25.8012, 22.1982, 76.3088)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BE4 #E4C85F
analogous
#5FBEE4 #5F7BE4 #855FE4
triadic
#5F7BE4 #E45F7B #7BE45F
tetradic
#5F7BE4 #E45FBE #E4C85F #5FE485
square
#5F7BE4 #E45FBE #E4C85F #5FE485
split-complementary
#5F7BE4 #E4855F #BEE45F
monochromatic
#1D3BAC #2B50DB #5F7BE4 #93A6ED #C8D1F6

Accessibility & contrast

On white

3.86
#5F7BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5F7BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BE4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BE4#FFFFFF#000000##000000
##5F7BE41.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4988E8
Deuteranopia (green-blind)
#357CE2
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f7be4;
/* rgb */ color: rgb(95, 123, 228);
/* oklch */ color: oklch(61.3% 0.161 269.9);
Tailwind
colors: {
  custom: {
    50: '#97a0ed',
    500: '#5f7be4',
    950: '#000000',
  },
}
SCSS
$custom: #5f7be4;
$custom-light: #97a0ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7be4",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 227.368,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61317,
    "c": 0.16139,
    "h": 269.9
  },
  "luminance": 0.222
}

Semantic roles & 50–950 ramp

primary
#5F7BE4
secondary
#E7DDB8
accent
#AB12D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5F7BE4

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

Preview Lab → · Contrast checker → · Palette generator →

#5F7BE4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva