#315BDB#315BDB

#315BDB is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.1% C 0.201 H 265.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#315BDB
RGBrgb(49, 91, 219)
HSLhsl(225, 70%, 53%)
HSVhsv(225, 78%, 86%)
CMYKcmyk(77.6%, 58.4%, 0%, 14.1%)
CIE-LABlab(43.13, 31.12, -69.52)
CIE-LCHlch(43.13, 76.17, 294.12°)
OKLaboklab(52.14% -0.015 -0.2009)
OKLCHoklch(52.14% 0.201 265.7)
XYZxyz(17.7894, 13.2476, 68.6236)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BDB #DBB131
analogous
#31B0DB #315BDB #5C31DB
triadic
#315BDB #DB315B #5BDB31
tetradic
#315BDB #DB31B0 #DBB131 #31DB5C
square
#315BDB #DB31B0 #DBB131 #31DB5C
split-complementary
#315BDB #DB5C31 #B0DB31
monochromatic
#162F7C #1F43B0 #315BDB #6584E4 #99AEED

Accessibility & contrast

On white

5.75
#315BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#315BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BDB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BDB#FFFFFF#000000##FFFFFF
##315BDB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#007B92
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #315bdb;
/* rgb */ color: rgb(49, 91, 219);
/* oklch */ color: oklch(52.1% 0.201 265.7);
Tailwind
colors: {
  custom: {
    50: '#8388e7',
    500: '#315bdb',
    950: '#000000',
  },
}
SCSS
$custom: #315bdb;
$custom-light: #8388e7;
$custom-dark: #000000;
JSON
{
  "hex": "#315bdb",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 225.176,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.20143,
    "h": 265.7
  },
  "luminance": 0.1325
}

Semantic roles & 50–950 ramp

primary
#315BDB
secondary
#D9C78F
accent
#C13BED
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0B16
muted
#7D7C84

Preview Lab

Preview with #315BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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