#315FDB#315FDB

#315FDB is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.9% C 0.197 H 264.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#315FDB
RGBrgb(49, 95, 219)
HSLhsl(224, 70%, 53%)
HSVhsv(224, 78%, 86%)
CMYKcmyk(77.6%, 56.6%, 0%, 14.1%)
CIE-LABlab(44.16, 28.56, -67.85)
CIE-LCHlch(44.16, 73.61, 292.83°)
OKLaboklab(52.91% -0.0175 -0.1959)
OKLCHoklch(52.91% 0.197 264.9)
XYZxyz(18.1405, 13.9498, 68.7406)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FDB #DBAD31
analogous
#31B4DB #315FDB #5831DB
triadic
#315FDB #DB315F #5FDB31
tetradic
#315FDB #DB31B4 #DBAD31 #31DB58
square
#315FDB #DB31B4 #DBAD31 #31DB58
split-complementary
#315FDB #DB5831 #B4DB31
monochromatic
#16317C #1F46B0 #315FDB #6587E4 #99B0ED

Accessibility & contrast

On white

5.54
#315FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#315FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FDB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FDB#FFFFFF#000000##FFFFFF
##315FDB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#007E94
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #315fdb;
/* rgb */ color: rgb(49, 95, 219);
/* oklch */ color: oklch(52.9% 0.197 264.9);
Tailwind
colors: {
  custom: {
    50: '#838be7',
    500: '#315fdb',
    950: '#000000',
  },
}
SCSS
$custom: #315fdb;
$custom-light: #838be7;
$custom-dark: #000000;
JSON
{
  "hex": "#315fdb",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 223.765,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52907,
    "c": 0.19667,
    "h": 264.9
  },
  "luminance": 0.13952
}

Semantic roles & 50–950 ramp

primary
#315FDB
secondary
#D9C58F
accent
#BD3BED
background
#F8F8FE
surface
#F0F0FD
border
#CBCBD5
text
#0C0C16
muted
#7D7D84

Preview Lab

Preview with #315FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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