#315FB3#315FB3

#315FB3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.143 H 261.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#315FB3
RGBrgb(49, 95, 179)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 73%, 70%)
CMYKcmyk(72.6%, 46.9%, 0%, 29.8%)
CIE-LABlab(41.36, 13.59, -49.26)
CIE-LCHlch(41.36, 51.10, 285.42°)
OKLaboklab(49.89% -0.0217 -0.1412)
OKLCHoklch(49.89% 0.143 261.3)
XYZxyz(13.4926, 12.0906, 44.2617)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB3 #B38531
analogous
#31A0B3 #315FB3 #4431B3
triadic
#315FB3 #B3315F #5FB331
tetradic
#315FB3 #B331A0 #B38531 #31B344
square
#315FB3 #B331A0 #B38531 #31B344
split-complementary
#315FB3 #B34431 #A0B331
monochromatic
#172C53 #244683 #315FB3 #527ED0 #82A2DD

Accessibility & contrast

On white

6.14
#315FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#315FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB3
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB3#FFFFFF#000000##FFFFFF
##315FB31.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#145CB1
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315fb3;
/* rgb */ color: rgb(49, 95, 179);
/* oklch */ color: oklch(49.9% 0.143 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8bca',
    500: '#315fb3',
    950: '#000000',
  },
}
SCSS
$custom: #315fb3;
$custom-light: #7a8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb3",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 218.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49891,
    "c": 0.14288,
    "h": 261.3
  },
  "luminance": 0.12092
}

Semantic roles & 50–950 ramp

primary
#315FB3
secondary
#C6AB7A
accent
#AA48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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