#315BA3#315BA3

#315BA3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.125 H 260.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#315BA3
RGBrgb(49, 91, 163)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(69.9%, 44.2%, 0%, 36.1%)
CIE-LABlab(39.20, 10.18, -43.26)
CIE-LCHlch(39.20, 44.44, 283.24°)
OKLaboklab(47.91% -0.0208 -0.1236)
OKLCHoklch(47.91% 0.125 260.4)
XYZxyz(11.6162, 10.7783, 36.1115)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA3 #A37931
analogous
#3194A3 #315BA3 #4031A3
triadic
#315BA3 #A3315B #5BA331
tetradic
#315BA3 #A33194 #A37931 #31A340
square
#315BA3 #A33194 #A37931 #31A340
split-complementary
#315BA3 #A34031 #94A331
monochromatic
#152645 #234174 #315BA3 #4978C8 #789BD6

Accessibility & contrast

On white

6.65
#315BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#315BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA3
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA3#FFFFFF#000000##FFFFFF
##315BA31.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A6
Deuteranopia (green-blind)
#2457A2
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315ba3;
/* rgb */ color: rgb(49, 91, 163);
/* oklch */ color: oklch(47.9% 0.125 260.4);
Tailwind
colors: {
  custom: {
    50: '#7788bf',
    500: '#315ba3',
    950: '#000000',
  },
}
SCSS
$custom: #315ba3;
$custom-light: #7788bf;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba3",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 163
  },
  "hsl": {
    "h": 217.895,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47908,
    "c": 0.12538,
    "h": 260.4
  },
  "luminance": 0.10779
}

Semantic roles & 50–950 ramp

primary
#315BA3
secondary
#BFA271
accent
#A74BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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