#315EA6#315EA6

#315EA6 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.126 H 259.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#315EA6
RGBrgb(49, 94, 166)
HSLhsl(217, 54%, 42%)
HSVhsv(217, 70%, 65%)
CMYKcmyk(70.5%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.26, 9.36, -43.35)
CIE-LCHlch(40.26, 44.35, 282.18°)
OKLaboklab(48.79% -0.0231 -0.1239)
OKLCHoklch(48.79% 0.126 259.4)
XYZxyz(12.1498, 11.4103, 37.6311)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA6 #A67931
analogous
#3199A6 #315EA6 #3E31A6
triadic
#315EA6 #A6315E #5EA631
tetradic
#315EA6 #A63199 #A67931 #31A63E
square
#315EA6 #A63199 #A67931 #31A63E
split-complementary
#315EA6 #A63E31 #99A631
monochromatic
#152847 #234377 #315EA6 #4A7BCA #7A9ED8

Accessibility & contrast

On white

6.40
#315EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#315EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA6#FFFFFF#000000##FFFFFF
##315EA61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ea6;
/* rgb */ color: rgb(49, 94, 166);
/* oklch */ color: oklch(48.8% 0.126 259.4);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#315ea6',
    950: '#000000',
  },
}
SCSS
$custom: #315ea6;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea6",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 216.923,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48785,
    "c": 0.126,
    "h": 259.4
  },
  "luminance": 0.11412
}

Semantic roles & 50–950 ramp

primary
#315EA6
secondary
#C0A273
accent
#A54ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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