#315FBE#315FBE

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

Color values

HEX#315FBE
RGBrgb(49, 95, 190)
HSLhsl(220, 59%, 47%)
HSVhsv(220, 74%, 75%)
CMYKcmyk(74.2%, 50%, 0%, 25.5%)
CIE-LABlab(42.08, 17.73, -54.52)
CIE-LCHlch(42.08, 57.33, 288.01°)
OKLaboklab(50.68% -0.0201 -0.1567)
OKLCHoklch(50.68% 0.158 262.7)
XYZxyz(14.6498, 12.5535, 50.3562)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBE #BE9031
analogous
#31A5BE #315FBE #4A31BE
triadic
#315FBE #BE315F #5FBE31
tetradic
#315FBE #BE31A5 #BE9031 #31BE4A
square
#315FBE #BE31A5 #BE9031 #31BE4A
split-complementary
#315FBE #BE4A31 #A5BE31
monochromatic
#182E5D #24478D #315FBE #5881D4 #89A5E1

Accessibility & contrast

On white

5.98
#315FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#315FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FBE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBE#FFFFFF#000000##FFFFFF
##315FBE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266AC1
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#007685
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fbe;
/* rgb */ color: rgb(49, 95, 190);
/* oklch */ color: oklch(50.7% 0.158 262.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bd2',
    500: '#315fbe',
    950: '#000000',
  },
}
SCSS
$custom: #315fbe;
$custom-light: #7c8bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#315fbe",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 190
  },
  "hsl": {
    "h": 220.426,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.15799,
    "h": 262.7
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

primary
#315FBE
secondary
#CAB280
accent
#AF46E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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