#315E9D#315E9D

#315E9D is a mid, moderate blue. Relative luminance 0.111; OKLCH L 48.2% C 0.113 H 257.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#315E9D
RGBrgb(49, 94, 157)
HSLhsl(215, 52%, 40%)
HSVhsv(215, 69%, 62%)
CMYKcmyk(68.8%, 40.1%, 0%, 38.4%)
CIE-LABlab(39.73, 6.01, -38.84)
CIE-LCHlch(39.73, 39.30, 278.79°)
OKLaboklab(48.2% -0.0251 -0.1106)
OKLCHoklch(48.2% 0.113 257.2)
XYZxyz(11.3529, 11.0915, 33.4343)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E9D #9D7031
analogous
#31949D #315E9D #3A319D
triadic
#315E9D #9D315E #5E9D31
tetradic
#315E9D #9D3194 #9D7031 #319D3A
square
#315E9D #9D3194 #9D7031 #319D3A
split-complementary
#315E9D #9D3A31 #949D31
monochromatic
#142640 #22426E #315E9D #467BC5 #759CD4

Accessibility & contrast

On white

6.52
#315E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315E9D
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315E9D#FFFFFF#000000##FFFFFF
##315E9D1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4163A0
Deuteranopia (green-blind)
#31599C
Tritanopia (blue-blind)
#006D76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #315e9d;
/* rgb */ color: rgb(49, 94, 157);
/* oklch */ color: oklch(48.2% 0.113 257.2);
Tailwind
colors: {
  custom: {
    50: '#758bba',
    500: '#315e9d',
    950: '#000000',
  },
}
SCSS
$custom: #315e9d;
$custom-light: #758bba;
$custom-dark: #000000;
JSON
{
  "hex": "#315e9d",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 157
  },
  "hsl": {
    "h": 215,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48203,
    "c": 0.11343,
    "h": 257.2
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#315E9D
secondary
#BC9B6E
accent
#A04CDC
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #315E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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