#315FA3#315FA3

#315FA3 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.8% C 0.121 H 258.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#315FA3
RGBrgb(49, 95, 163)
HSLhsl(216, 54%, 42%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(69.9%, 41.7%, 0%, 36.1%)
CIE-LABlab(40.38, 7.59, -41.38)
CIE-LCHlch(40.38, 42.08, 280.40°)
OKLaboklab(48.82% -0.0247 -0.1181)
OKLCHoklch(48.82% 0.121 258.2)
XYZxyz(11.9673, 11.4805, 36.2285)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA3 #A37531
analogous
#3198A3 #315FA3 #3C31A3
triadic
#315FA3 #A3315F #5FA331
tetradic
#315FA3 #A33198 #A37531 #31A33C
square
#315FA3 #A33198 #A37531 #31A33C
split-complementary
#315FA3 #A33C31 #98A331
monochromatic
#152845 #234474 #315FA3 #497CC8 #789ED6

Accessibility & contrast

On white

6.37
#315FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#315FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FA3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FA3#FFFFFF#000000##FFFFFF
##315FA31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A6
Deuteranopia (green-blind)
#2D5AA2
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315fa3;
/* rgb */ color: rgb(49, 95, 163);
/* oklch */ color: oklch(48.8% 0.121 258.2);
Tailwind
colors: {
  custom: {
    50: '#778bbf',
    500: '#315fa3',
    950: '#000000',
  },
}
SCSS
$custom: #315fa3;
$custom-light: #778bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa3",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 215.789,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48816,
    "c": 0.12064,
    "h": 258.2
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#315FA3
secondary
#BF9F71
accent
#A24BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #315FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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