#5F7BEA#5F7BEA

#5F7BEA is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.7% C 0.170 H 270.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5F7BEA
RGBrgb(95, 123, 234)
HSLhsl(228, 77%, 65%)
HSVhsv(228, 59%, 92%)
CMYKcmyk(59.4%, 47.4%, 0%, 8.2%)
CIE-LABlab(54.59, 22.97, -59.34)
CIE-LCHlch(54.59, 63.63, 291.17°)
OKLaboklab(61.7% 0.0005 -0.1696)
OKLCHoklch(61.7% 0.17 270.2)
XYZxyz(26.6486, 22.5372, 80.7717)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7BEA #EACE5F
analogous
#5FC0EA #5F7BEA #895FEA
triadic
#5F7BEA #EA5F7B #7BEA5F
tetradic
#5F7BEA #EA5FC0 #EACE5F #5FEA89
square
#5F7BEA #EA5FC0 #EACE5F #5FEA89
split-complementary
#5F7BEA #EA895F #C0EA5F
monochromatic
#1838B7 #294EE3 #5F7BEA #95A8F1 #CBD4F8

Accessibility & contrast

On white

3.81
#5F7BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5F7BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7BEA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7BEA#FFFFFF#000000##000000
##5F7BEA1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4489EE
Deuteranopia (green-blind)
#2C7DE8
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5f7bea;
/* rgb */ color: rgb(95, 123, 234);
/* oklch */ color: oklch(61.7% 0.170 270.2);
Tailwind
colors: {
  custom: {
    50: '#98a0f1',
    500: '#5f7bea',
    950: '#000000',
  },
}
SCSS
$custom: #5f7bea;
$custom-light: #98a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7bea",
  "rgb": {
    "r": 95,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 227.914,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61702,
    "c": 0.16957,
    "h": 270.2
  },
  "luminance": 0.22539
}

Semantic roles & 50–950 ramp

primary
#5F7BEA
secondary
#EAE1BA
accent
#B00CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5F7BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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