#315FBF#315FBF

#315FBF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.159 H 262.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#315FBF
RGBrgb(49, 95, 191)
HSLhsl(221, 59%, 47%)
HSVhsv(221, 74%, 75%)
CMYKcmyk(74.3%, 50.3%, 0%, 25.1%)
CIE-LABlab(42.15, 18.10, -55.00)
CIE-LCHlch(42.15, 57.90, 288.22°)
OKLaboklab(50.75% -0.02 -0.1581)
OKLCHoklch(50.75% 0.159 262.8)
XYZxyz(14.7594, 12.5973, 50.9338)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBF #BF9131
analogous
#31A6BF #315FBF #4A31BF
triadic
#315FBF #BF315F #5FBF31
tetradic
#315FBF #BF31A6 #BF9131 #31BF4A
square
#315FBF #BF31A6 #BF9131 #31BF4A
split-complementary
#315FBF #BF4A31 #A6BF31
monochromatic
#182F5E #25478E #315FBF #5981D4 #8AA6E1

Accessibility & contrast

On white

5.97
#315FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#315FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FBF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBF#FFFFFF#000000##FFFFFF
##315FBF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC2
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fbf;
/* rgb */ color: rgb(49, 95, 191);
/* oklch */ color: oklch(50.7% 0.159 262.8);
Tailwind
colors: {
  custom: {
    50: '#7c8bd3',
    500: '#315fbf',
    950: '#000000',
  },
}
SCSS
$custom: #315fbf;
$custom-light: #7c8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#315fbf",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 220.563,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50749,
    "c": 0.15936,
    "h": 262.8
  },
  "luminance": 0.12599
}

Semantic roles & 50–950 ramp

primary
#315FBF
secondary
#CBB381
accent
#B045E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FBF

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

Preview Lab → · Contrast checker → · Palette generator →

#315FBF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva