#5F7BF2#5F7BF2

#5F7BF2 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.2% C 0.180 H 270.4°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5F7BF2
RGBrgb(95, 123, 242)
HSLhsl(229, 85%, 66%)
HSVhsv(229, 61%, 95%)
CMYKcmyk(60.7%, 49.2%, 0%, 5.1%)
CIE-LABlab(55.08, 25.61, -63.01)
CIE-LCHlch(55.08, 68.02, 292.12°)
OKLaboklab(62.23% 0.0014 -0.1804)
OKLCHoklch(62.23% 0.18 270.4)
XYZxyz(27.8239, 23.0073, 86.9618)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BF2 #F2D65F
analogous
#5FC5F2 #5F7BF2 #8C5FF2
triadic
#5F7BF2 #F25F7B #7BF25F
tetradic
#5F7BF2 #F25FC5 #F2D65F #5FF28C
square
#5F7BF2 #F25FC5 #F2D65F #5FF28C
split-complementary
#5F7BF2 #F28C5F #C5F25F
monochromatic
#1033C6 #264CED #5F7BF2 #98AAF7 #D0D8FB

Accessibility & contrast

On white

3.75
#5F7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5F7BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BF2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BF2#FFFFFF#000000##000000
##5F7BF21.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8BF6
Deuteranopia (green-blind)
#1A7EF0
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f7bf2;
/* rgb */ color: rgb(95, 123, 242);
/* oklch */ color: oklch(62.2% 0.180 270.4);
Tailwind
colors: {
  custom: {
    50: '#99a0f7',
    500: '#5f7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bf2;
$custom-light: #99a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bf2",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 228.571,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62229,
    "c": 0.18038,
    "h": 270.4
  },
  "luminance": 0.2301
}

Semantic roles & 50–950 ramp

primary
#5F7BF2
secondary
#EFE5BE
accent
#B704E1
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5F7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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