#315DAB#315DAB

#315DAB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.9% C 0.134 H 260.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#315DAB
RGBrgb(49, 93, 171)
HSLhsl(218, 55%, 43%)
HSVhsv(218, 71%, 67%)
CMYKcmyk(71.3%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.28, 11.88, -46.28)
CIE-LCHlch(40.28, 47.78, 284.40°)
OKLaboklab(48.9% -0.0212 -0.1325)
OKLCHoklch(48.9% 0.134 260.9)
XYZxyz(12.5290, 11.4206, 40.0643)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DAB #AB7F31
analogous
#319AAB #315DAB #4231AB
triadic
#315DAB #AB315D #5DAB31
tetradic
#315DAB #AB319A #AB7F31 #31AB42
square
#315DAB #AB319A #AB7F31 #31AB42
split-complementary
#315DAB #AB4231 #9AAB31
monochromatic
#16294C #23437B #315DAB #4D7BCC #7D9EDA

Accessibility & contrast

On white

6.39
#315DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#315DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DAB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DAB#FFFFFF#000000##FFFFFF
##315DAB1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AE
Deuteranopia (green-blind)
#1E5AA9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315dab;
/* rgb */ color: rgb(49, 93, 171);
/* oklch */ color: oklch(48.9% 0.134 260.9);
Tailwind
colors: {
  custom: {
    50: '#788ac4',
    500: '#315dab',
    950: '#000000',
  },
}
SCSS
$custom: #315dab;
$custom-light: #788ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#315dab",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 218.361,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48897,
    "c": 0.13419,
    "h": 260.9
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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