#315CAB#315CAB

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

Color values

HEX#315CAB
RGBrgb(49, 92, 171)
HSLhsl(219, 55%, 43%)
HSVhsv(219, 71%, 67%)
CMYKcmyk(71.3%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.99, 12.53, -46.74)
CIE-LCHlch(39.99, 48.39, 285.00°)
OKLaboklab(48.68% -0.0203 -0.1339)
OKLCHoklch(48.68% 0.135 261.4)
XYZxyz(12.4418, 11.2462, 40.0352)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CAB #AB8031
analogous
#3199AB #315CAB #4331AB
triadic
#315CAB #AB315C #5CAB31
tetradic
#315CAB #AB3199 #AB8031 #31AB43
square
#315CAB #AB3199 #AB8031 #31AB43
split-complementary
#315CAB #AB4331 #99AB31
monochromatic
#16294C #23427B #315CAB #4D7ACC #7D9DDA

Accessibility & contrast

On white

6.46
#315CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#315CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CAB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CAB#FFFFFF#000000##FFFFFF
##315CAB1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315cab;
/* rgb */ color: rgb(49, 92, 171);
/* oklch */ color: oklch(48.7% 0.135 261.4);
Tailwind
colors: {
  custom: {
    50: '#7889c4',
    500: '#315cab',
    950: '#000000',
  },
}
SCSS
$custom: #315cab;
$custom-light: #7889c4;
$custom-dark: #000000;
JSON
{
  "hex": "#315cab",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 218.852,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48675,
    "c": 0.1354,
    "h": 261.4
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#315CAB
secondary
#C2A775
accent
#AA49DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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