#315EAF#315EAF

#315EAF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.4% C 0.139 H 261.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#315EAF
RGBrgb(49, 94, 175)
HSLhsl(219, 56%, 44%)
HSVhsv(219, 72%, 69%)
CMYKcmyk(72%, 46.3%, 0%, 31.4%)
CIE-LABlab(40.82, 12.73, -47.78)
CIE-LCHlch(40.82, 49.44, 284.92°)
OKLaboklab(49.39% -0.0215 -0.1369)
OKLCHoklch(49.39% 0.139 261.1)
XYZxyz(13.0044, 11.7521, 42.1322)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EAF #AF8231
analogous
#319DAF #315EAF #4331AF
triadic
#315EAF #AF315E #5EAF31
tetradic
#315EAF #AF319D #AF8231 #31AF43
square
#315EAF #AF319D #AF8231 #31AF43
split-complementary
#315EAF #AF4331 #9DAF31
monochromatic
#162B4F #24447F #315EAF #4F7DCE #7FA0DB

Accessibility & contrast

On white

6.27
#315EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#315EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EAF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EAF#FFFFFF#000000##FFFFFF
##315EAF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3466B2
Deuteranopia (green-blind)
#195BAD
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315eaf;
/* rgb */ color: rgb(49, 94, 175);
/* oklch */ color: oklch(49.4% 0.139 261.1);
Tailwind
colors: {
  custom: {
    50: '#798bc7',
    500: '#315eaf',
    950: '#000000',
  },
}
SCSS
$custom: #315eaf;
$custom-light: #798bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#315eaf",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 218.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49393,
    "c": 0.13854,
    "h": 261.1
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

primary
#315EAF
secondary
#C4A978
accent
#AA48E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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