#315790#315790

#315790 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.8% C 0.103 H 258.3°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#315790
RGBrgb(49, 87, 144)
HSLhsl(216, 49%, 38%)
HSVhsv(216, 66%, 56%)
CMYKcmyk(66%, 39.6%, 0%, 43.5%)
CIE-LABlab(36.90, 5.71, -35.52)
CIE-LCHlch(36.90, 35.98, 279.14°)
OKLaboklab(45.76% -0.0209 -0.101)
OKLCHoklch(45.76% 0.103 258.3)
XYZxyz(9.7071, 9.4820, 27.6988)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315790 #906A31
analogous
#318690 #315790 #3A3190
triadic
#315790 #903157 #579031
tetradic
#315790 #903186 #906A31 #31903A
square
#315790 #903186 #906A31 #31903A
split-complementary
#315790 #903A31 #869031
monochromatic
#122035 #213B62 #315790 #4173BE #6E94CE

Accessibility & contrast

On white

7.25
#315790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#315790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315790
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315790#FFFFFF#000000##FFFFFF
##3157901.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C92
Deuteranopia (green-blind)
#30538F
Tritanopia (blue-blind)
#00646C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #315790;
/* rgb */ color: rgb(49, 87, 144);
/* oklch */ color: oklch(45.8% 0.103 258.3);
Tailwind
colors: {
  custom: {
    50: '#7386b1',
    500: '#315790',
    950: '#000000',
  },
}
SCSS
$custom: #315790;
$custom-light: #7386b1;
$custom-dark: #000000;
JSON
{
  "hex": "#315790",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 144
  },
  "hsl": {
    "h": 216,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45756,
    "c": 0.10314,
    "h": 258.3
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#315790
secondary
#B59668
accent
#A24FD9
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #315790

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

Preview Lab → · Contrast checker → · Palette generator →

#315790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva