#315299#315299

#315299 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.122 H 263.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#315299
RGBrgb(49, 82, 153)
HSLhsl(221, 51%, 40%)
HSVhsv(221, 68%, 60%)
CMYKcmyk(68%, 46.4%, 0%, 40%)
CIE-LABlab(35.96, 12.33, -42.46)
CIE-LCHlch(35.96, 44.22, 286.20°)
OKLaboklab(45.21% -0.0138 -0.1214)
OKLCHoklch(45.21% 0.122 263.5)
XYZxyz(10.0317, 8.9865, 31.3367)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315299 #997831
analogous
#318699 #315299 #443199
triadic
#315299 #993152 #529931
tetradic
#315299 #993186 #997831 #319944
square
#315299 #993186 #997831 #319944
split-complementary
#315299 #994431 #869931
monochromatic
#13203C #22396B #315299 #446CC3 #7291D2

Accessibility & contrast

On white

7.51
#315299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#315299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315299
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315299#FFFFFF#000000##FFFFFF
##3152991.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9C
Deuteranopia (green-blind)
#1B5098
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #315299;
/* rgb */ color: rgb(49, 82, 153);
/* oklch */ color: oklch(45.2% 0.122 263.5);
Tailwind
colors: {
  custom: {
    50: '#7582b7',
    500: '#315299',
    950: '#000000',
  },
}
SCSS
$custom: #315299;
$custom-light: #7582b7;
$custom-dark: #000000;
JSON
{
  "hex": "#315299",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 220.962,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45208,
    "c": 0.12223,
    "h": 263.5
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#315299
secondary
#BAA16C
accent
#AE4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #315299

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

Preview Lab → · Contrast checker → · Palette generator →

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