#315EA2#315EA2

#315EA2 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.5% C 0.120 H 258.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#315EA2
RGBrgb(49, 94, 162)
HSLhsl(216, 54%, 41%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(69.8%, 42%, 0%, 36.5%)
CIE-LABlab(40.02, 7.87, -41.35)
CIE-LCHlch(40.02, 42.10, 280.77°)
OKLaboklab(48.52% -0.024 -0.118)
OKLCHoklch(48.52% 0.12 258.5)
XYZxyz(11.7886, 11.2658, 35.7287)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA2 #A27531
analogous
#3197A2 #315EA2 #3C31A2
triadic
#315EA2 #A2315E #5EA231
tetradic
#315EA2 #A23197 #A27531 #31A23C
square
#315EA2 #A23197 #A27531 #31A23C
split-complementary
#315EA2 #A23C31 #97A231
monochromatic
#152744 #234373 #315EA2 #487BC8 #779DD6

Accessibility & contrast

On white

6.45
#315EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#315EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA2#FFFFFF#000000##FFFFFF
##315EA21.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#2C59A1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315ea2;
/* rgb */ color: rgb(49, 94, 162);
/* oklch */ color: oklch(48.5% 0.120 258.5);
Tailwind
colors: {
  custom: {
    50: '#768bbe',
    500: '#315ea2',
    950: '#000000',
  },
}
SCSS
$custom: #315ea2;
$custom-light: #768bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea2",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 216.106,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.12041,
    "h": 258.5
  },
  "luminance": 0.11267
}

Semantic roles & 50–950 ramp

primary
#315EA2
secondary
#BE9F71
accent
#A34BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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