#315FB9#315FB9

#315FB9 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.151 H 262.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#315FB9
RGBrgb(49, 95, 185)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.5%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.75, 15.85, -52.15)
CIE-LCHlch(41.75, 54.50, 286.90°)
OKLaboklab(50.31% -0.0208 -0.1497)
OKLCHoklch(50.31% 0.151 262.1)
XYZxyz(14.1127, 12.3386, 47.5274)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB9 #B98B31
analogous
#31A3B9 #315FB9 #4731B9
triadic
#315FB9 #B9315F #5FB931
tetradic
#315FB9 #B931A3 #B98B31 #31B947
square
#315FB9 #B931A3 #B98B31 #31B947
split-complementary
#315FB9 #B94731 #A3B931
monochromatic
#172D58 #244689 #315FB9 #557FD2 #86A4DF

Accessibility & contrast

On white

6.06
#315FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#315FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB9
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB9#FFFFFF#000000##FFFFFF
##315FB91.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BC
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb9;
/* rgb */ color: rgb(49, 95, 185);
/* oklch */ color: oklch(50.3% 0.151 262.1);
Tailwind
colors: {
  custom: {
    50: '#7b8bcf',
    500: '#315fb9',
    950: '#000000',
  },
}
SCSS
$custom: #315fb9;
$custom-light: #7b8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb9",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 219.706,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50314,
    "c": 0.15115,
    "h": 262.1
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#315FB9
secondary
#C8AF7D
accent
#AD46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #315FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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