#315AB2#315AB2

#315AB2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.148 H 263.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#315AB2
RGBrgb(49, 90, 178)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 72%, 70%)
CMYKcmyk(72.5%, 49.4%, 0%, 30.2%)
CIE-LABlab(39.88, 16.46, -51.05)
CIE-LCHlch(39.88, 53.64, 287.87°)
OKLaboklab(48.74% -0.0174 -0.1466)
OKLCHoklch(48.74% 0.148 263.2)
XYZxyz(12.9558, 11.1783, 43.5857)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AB2 #B28931
analogous
#319BB2 #315AB2 #4831B2
triadic
#315AB2 #B2315A #5AB231
tetradic
#315AB2 #B2319B #B28931 #31B248
square
#315AB2 #B2319B #B28931 #31B248
split-complementary
#315AB2 #B24831 #9BB231
monochromatic
#172952 #244282 #315AB2 #5179CF #819EDC

Accessibility & contrast

On white

6.49
#315AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#315AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AB2
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AB2#FFFFFF#000000##FFFFFF
##315AB21.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315ab2;
/* rgb */ color: rgb(49, 90, 178);
/* oklch */ color: oklch(48.7% 0.148 263.2);
Tailwind
colors: {
  custom: {
    50: '#7a88ca',
    500: '#315ab2',
    950: '#000000',
  },
}
SCSS
$custom: #315ab2;
$custom-light: #7a88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#315ab2",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 220.93,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48735,
    "c": 0.14762,
    "h": 263.2
  },
  "luminance": 0.1118
}

Semantic roles & 50–950 ramp

primary
#315AB2
secondary
#C5AD79
accent
#B048E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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