#315EA4#315EA4

#315EA4 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.123 H 259.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#315EA4
RGBrgb(49, 94, 164)
HSLhsl(217, 54%, 42%)
HSVhsv(217, 70%, 64%)
CMYKcmyk(70.1%, 42.7%, 0%, 35.7%)
CIE-LABlab(40.14, 8.61, -42.35)
CIE-LCHlch(40.14, 43.22, 281.49°)
OKLaboklab(48.65% -0.0236 -0.1209)
OKLCHoklch(48.65% 0.123 259)
XYZxyz(11.9678, 11.3375, 36.6724)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA4 #A47731
analogous
#3198A4 #315EA4 #3E31A4
triadic
#315EA4 #A4315E #5EA431
tetradic
#315EA4 #A43198 #A47731 #31A43E
square
#315EA4 #A43198 #A47731 #31A43E
split-complementary
#315EA4 #A43E31 #98A431
monochromatic
#152846 #234375 #315EA4 #497BC9 #799DD7

Accessibility & contrast

On white

6.43
#315EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#315EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA4
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA4#FFFFFF#000000##FFFFFF
##315EA41.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A7
Deuteranopia (green-blind)
#2A5AA3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ea4;
/* rgb */ color: rgb(49, 94, 164);
/* oklch */ color: oklch(48.7% 0.123 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bbf',
    500: '#315ea4',
    950: '#000000',
  },
}
SCSS
$custom: #315ea4;
$custom-light: #778bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea4",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 216.522,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48653,
    "c": 0.12321,
    "h": 259
  },
  "luminance": 0.11339
}

Semantic roles & 50–950 ramp

primary
#315EA4
secondary
#BFA172
accent
#A44ADD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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