#315AA3#315AA3

#315AA3 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.127 H 261.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#315AA3
RGBrgb(49, 90, 163)
HSLhsl(218, 54%, 42%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(69.9%, 44.8%, 0%, 36.1%)
CIE-LABlab(38.91, 10.83, -43.73)
CIE-LCHlch(38.91, 45.05, 283.91°)
OKLaboklab(47.68% -0.0199 -0.125)
OKLCHoklch(47.68% 0.127 261)
XYZxyz(11.5313, 10.6085, 36.0832)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AA3 #A37A31
analogous
#3193A3 #315AA3 #4131A3
triadic
#315AA3 #A3315A #5AA331
tetradic
#315AA3 #A33193 #A37A31 #31A341
square
#315AA3 #A33193 #A37A31 #31A341
split-complementary
#315AA3 #A34131 #93A331
monochromatic
#152645 #234074 #315AA3 #4977C8 #789AD6

Accessibility & contrast

On white

6.73
#315AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#315AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AA3
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AA3#FFFFFF#000000##FFFFFF
##315AA31.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A6
Deuteranopia (green-blind)
#2257A2
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315aa3;
/* rgb */ color: rgb(49, 90, 163);
/* oklch */ color: oklch(47.7% 0.127 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788bf',
    500: '#315aa3',
    950: '#000000',
  },
}
SCSS
$custom: #315aa3;
$custom-light: #7788bf;
$custom-dark: #000000;
JSON
{
  "hex": "#315aa3",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 163
  },
  "hsl": {
    "h": 218.421,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47683,
    "c": 0.1266,
    "h": 261
  },
  "luminance": 0.1061
}

Semantic roles & 50–950 ramp

primary
#315AA3
secondary
#BFA371
accent
#A84BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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