#315DB1#315DB1

#315DB1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.143 H 261.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#315DB1
RGBrgb(49, 93, 177)
HSLhsl(219, 57%, 44%)
HSVhsv(219, 72%, 69%)
CMYKcmyk(72.3%, 47.5%, 0%, 30.6%)
CIE-LABlab(40.66, 14.13, -49.21)
CIE-LCHlch(40.66, 51.20, 286.03°)
OKLaboklab(49.31% -0.0202 -0.1411)
OKLCHoklch(49.31% 0.143 261.8)
XYZxyz(13.1139, 11.6546, 43.1449)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB1 #B18531
analogous
#319DB1 #315DB1 #4531B1
triadic
#315DB1 #B1315D #5DB131
tetradic
#315DB1 #B1319D #B18531 #31B145
square
#315DB1 #B1319D #B18531 #31B145
split-complementary
#315DB1 #B14531 #9DB131
monochromatic
#162B51 #244481 #315DB1 #517CCF #80A0DC

Accessibility & contrast

On white

6.30
#315DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#315DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB1#FFFFFF#000000##FFFFFF
##315DB11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B4
Deuteranopia (green-blind)
#105AAF
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315db1;
/* rgb */ color: rgb(49, 93, 177);
/* oklch */ color: oklch(49.3% 0.143 261.8);
Tailwind
colors: {
  custom: {
    50: '#798ac9',
    500: '#315db1',
    950: '#000000',
  },
}
SCSS
$custom: #315db1;
$custom-light: #798ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#315db1",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 219.375,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49313,
    "c": 0.14254,
    "h": 261.8
  },
  "luminance": 0.11656
}

Semantic roles & 50–950 ramp

primary
#315DB1
secondary
#C5AB79
accent
#AC48E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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