#315FA9#315FA9

#315FA9 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.129 H 259.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#315FA9
RGBrgb(49, 95, 169)
HSLhsl(217, 55%, 43%)
HSVhsv(217, 71%, 66%)
CMYKcmyk(71%, 43.8%, 0%, 33.7%)
CIE-LABlab(40.74, 9.84, -44.37)
CIE-LCHlch(40.74, 45.45, 282.50°)
OKLaboklab(49.21% -0.0235 -0.1268)
OKLCHoklch(49.21% 0.129 259.5)
XYZxyz(12.5177, 11.7006, 39.1272)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA9 #A97B31
analogous
#319BA9 #315FA9 #3F31A9
triadic
#315FA9 #A9315F #5FA931
tetradic
#315FA9 #A9319B #A97B31 #31A93F
square
#315FA9 #A9319B #A97B31 #31A93F
split-complementary
#315FA9 #A93F31 #9BA931
monochromatic
#152A4A #23447A #315FA9 #4C7DCB #7C9FD9

Accessibility & contrast

On white

6.29
#315FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#315FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FA9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FA9#FFFFFF#000000##FFFFFF
##315FA91.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AC
Deuteranopia (green-blind)
#265BA7
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315fa9;
/* rgb */ color: rgb(49, 95, 169);
/* oklch */ color: oklch(49.2% 0.129 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bc3',
    500: '#315fa9',
    950: '#000000',
  },
}
SCSS
$custom: #315fa9;
$custom-light: #788bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa9",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 169
  },
  "hsl": {
    "h": 217,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49209,
    "c": 0.129,
    "h": 259.5
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#315FA9
secondary
#C1A474
accent
#A549DE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #315FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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