#315AAB#315AAB

#315AAB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.138 H 262.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#315AAB
RGBrgb(49, 90, 171)
HSLhsl(220, 55%, 43%)
HSVhsv(220, 71%, 67%)
CMYKcmyk(71.3%, 47.4%, 0%, 32.9%)
CIE-LABlab(39.42, 13.83, -47.66)
CIE-LCHlch(39.42, 49.63, 286.18°)
OKLaboklab(48.24% -0.0185 -0.1366)
OKLCHoklch(48.24% 0.138 262.3)
XYZxyz(12.2709, 10.9043, 39.9782)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AAB #AB8231
analogous
#3197AB #315AAB #4531AB
triadic
#315AAB #AB315A #5AAB31
tetradic
#315AAB #AB3197 #AB8231 #31AB45
square
#315AAB #AB3197 #AB8231 #31AB45
split-complementary
#315AAB #AB4531 #97AB31
monochromatic
#16284C #23417B #315AAB #4D78CC #7D9CDA

Accessibility & contrast

On white

6.60
#315AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#315AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AAB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AAB#FFFFFF#000000##FFFFFF
##315AAB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#1358A9
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #315aab;
/* rgb */ color: rgb(49, 90, 171);
/* oklch */ color: oklch(48.2% 0.138 262.3);
Tailwind
colors: {
  custom: {
    50: '#7888c4',
    500: '#315aab',
    950: '#000000',
  },
}
SCSS
$custom: #315aab;
$custom-light: #7888c4;
$custom-dark: #000000;
JSON
{
  "hex": "#315aab",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 219.836,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48235,
    "c": 0.13785,
    "h": 262.3
  },
  "luminance": 0.10906
}

Semantic roles & 50–950 ramp

primary
#315AAB
secondary
#C2A975
accent
#AC49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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