#315DA2#315DA2

#315DA2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.3% C 0.122 H 259.1°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#315DA2
RGBrgb(49, 93, 162)
HSLhsl(217, 54%, 41%)
HSVhsv(217, 70%, 64%)
CMYKcmyk(69.8%, 42.6%, 0%, 36.5%)
CIE-LABlab(39.73, 8.51, -41.82)
CIE-LCHlch(39.73, 42.68, 281.50°)
OKLaboklab(48.3% -0.023 -0.1194)
OKLCHoklch(48.3% 0.122 259.1)
XYZxyz(11.7002, 11.0891, 35.6992)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DA2 #A27631
analogous
#3196A2 #315DA2 #3D31A2
triadic
#315DA2 #A2315D #5DA231
tetradic
#315DA2 #A23196 #A27631 #31A23D
square
#315DA2 #A23196 #A27631 #31A23D
split-complementary
#315DA2 #A23D31 #96A231
monochromatic
#152744 #234273 #315DA2 #487AC8 #779CD6

Accessibility & contrast

On white

6.53
#315DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#315DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DA2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DA2#FFFFFF#000000##FFFFFF
##315DA21.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#2A59A1
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315da2;
/* rgb */ color: rgb(49, 93, 162);
/* oklch */ color: oklch(48.3% 0.122 259.1);
Tailwind
colors: {
  custom: {
    50: '#768abe',
    500: '#315da2',
    950: '#000000',
  },
}
SCSS
$custom: #315da2;
$custom-light: #768abe;
$custom-dark: #000000;
JSON
{
  "hex": "#315da2",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 216.637,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48295,
    "c": 0.12159,
    "h": 259.1
  },
  "luminance": 0.1109
}

Semantic roles & 50–950 ramp

primary
#315DA2
secondary
#BEA071
accent
#A44BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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