#315FA1#315FA1

#315FA1 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.7% C 0.118 H 257.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#315FA1
RGBrgb(49, 95, 161)
HSLhsl(215, 53%, 41%)
HSVhsv(215, 70%, 63%)
CMYKcmyk(69.6%, 41%, 0%, 36.9%)
CIE-LABlab(40.26, 6.85, -40.38)
CIE-LCHlch(40.26, 40.96, 279.63°)
OKLaboklab(48.69% -0.0252 -0.1151)
OKLCHoklch(48.69% 0.118 257.7)
XYZxyz(11.7895, 11.4094, 35.2922)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA1 #A17331
analogous
#3197A1 #315FA1 #3B31A1
triadic
#315FA1 #A1315F #5FA131
tetradic
#315FA1 #A13197 #A17331 #31A13B
square
#315FA1 #A13197 #A17331 #31A13B
split-complementary
#315FA1 #A13B31 #97A131
monochromatic
#142843 #234372 #315FA1 #487CC7 #779ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315FA1#FFFFFF#000000##FFFFFF
##315FA11.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)
#4165A4
Deuteranopia (green-blind)
#2F5AA0
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315fa1;
/* rgb */ color: rgb(49, 95, 161);
/* oklch */ color: oklch(48.7% 0.118 257.7);
Tailwind
colors: {
  custom: {
    50: '#768cbd',
    500: '#315fa1',
    950: '#000000',
  },
}
SCSS
$custom: #315fa1;
$custom-light: #768cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa1",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 215.357,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.11786,
    "h": 257.7
  },
  "luminance": 0.11411
}

Semantic roles & 50–950 ramp

primary
#315FA1
secondary
#BE9E70
accent
#A14BDD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #315FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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