#315FAB#315FAB

#315FAB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.3% C 0.132 H 259.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#315FAB
RGBrgb(49, 95, 171)
HSLhsl(217, 55%, 43%)
HSVhsv(217, 71%, 67%)
CMYKcmyk(71.3%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.86, 10.59, -45.36)
CIE-LCHlch(40.86, 46.57, 283.14°)
OKLaboklab(49.34% -0.0231 -0.1297)
OKLCHoklch(49.34% 0.132 259.9)
XYZxyz(12.7069, 11.7763, 40.1236)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FAB #AB7D31
analogous
#319CAB #315FAB #4031AB
triadic
#315FAB #AB315F #5FAB31
tetradic
#315FAB #AB319C #AB7D31 #31AB40
square
#315FAB #AB319C #AB7D31 #31AB40
split-complementary
#315FAB #AB4031 #9CAB31
monochromatic
#162A4C #23457B #315FAB #4D7DCC #7DA0DA

Accessibility & contrast

On white

6.26
#315FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#315FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FAB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FAB#FFFFFF#000000##FFFFFF
##315FAB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AE
Deuteranopia (green-blind)
#235BA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315fab;
/* rgb */ color: rgb(49, 95, 171);
/* oklch */ color: oklch(49.3% 0.132 259.9);
Tailwind
colors: {
  custom: {
    50: '#788bc4',
    500: '#315fab',
    950: '#000000',
  },
}
SCSS
$custom: #315fab;
$custom-light: #788bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#315fab",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 217.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49343,
    "c": 0.13178,
    "h": 259.9
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#315FAB
secondary
#C2A575
accent
#A649DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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