#315FAF#315FAF

#315FAF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.137 H 260.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#315FAF
RGBrgb(49, 95, 175)
HSLhsl(218, 56%, 44%)
HSVhsv(218, 72%, 69%)
CMYKcmyk(72%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.11, 12.09, -47.32)
CIE-LCHlch(41.11, 48.84, 284.33°)
OKLaboklab(49.61% -0.0224 -0.1355)
OKLCHoklch(49.61% 0.137 260.6)
XYZxyz(13.0939, 11.9311, 42.1620)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FAF #AF8131
analogous
#319EAF #315FAF #4231AF
triadic
#315FAF #AF315F #5FAF31
tetradic
#315FAF #AF319E #AF8131 #31AF42
square
#315FAF #AF319E #AF8131 #31AF42
split-complementary
#315FAF #AF4231 #9EAF31
monochromatic
#162B4F #24457F #315FAF #4F7ECE #7FA1DB

Accessibility & contrast

On white

6.20
#315FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#315FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FAF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FAF#FFFFFF#000000##FFFFFF
##315FAF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#1D5CAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315faf;
/* rgb */ color: rgb(49, 95, 175);
/* oklch */ color: oklch(49.6% 0.137 260.6);
Tailwind
colors: {
  custom: {
    50: '#798bc7',
    500: '#315faf',
    950: '#000000',
  },
}
SCSS
$custom: #315faf;
$custom-light: #798bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#315faf",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 218.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49614,
    "c": 0.13734,
    "h": 260.6
  },
  "luminance": 0.11933
}

Semantic roles & 50–950 ramp

primary
#315FAF
secondary
#C4A878
accent
#A848E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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