#315DB4#315DB4

#315DB4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.147 H 262.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#315DB4
RGBrgb(49, 93, 180)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(72.8%, 48.3%, 0%, 29.4%)
CIE-LABlab(40.86, 15.26, -50.66)
CIE-LCHlch(40.86, 52.90, 286.77°)
OKLaboklab(49.53% -0.0198 -0.1454)
OKLCHoklch(49.53% 0.147 262.3)
XYZxyz(13.4163, 11.7755, 44.7370)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB4 #B48831
analogous
#319FB4 #315DB4 #4631B4
triadic
#315DB4 #B4315D #5DB431
tetradic
#315DB4 #B4319F #B48831 #31B446
square
#315DB4 #B4319F #B48831 #31B446
split-complementary
#315DB4 #B44631 #9FB431
monochromatic
#172B54 #244484 #315DB4 #527CD0 #82A1DD

Accessibility & contrast

On white

6.26
#315DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#315DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB4#FFFFFF#000000##FFFFFF
##315DB41.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B7
Deuteranopia (green-blind)
#055BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315db4;
/* rgb */ color: rgb(49, 93, 180);
/* oklch */ color: oklch(49.5% 0.147 262.3);
Tailwind
colors: {
  custom: {
    50: '#7a8acb',
    500: '#315db4',
    950: '#000000',
  },
}
SCSS
$custom: #315db4;
$custom-light: #7a8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#315db4",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 219.847,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49526,
    "c": 0.1467,
    "h": 262.3
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#315DB4
secondary
#C6AD7B
accent
#AD47E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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