#315097#315097

#315097 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.122 H 264.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#315097
RGBrgb(49, 80, 151)
HSLhsl(222, 51%, 39%)
HSVhsv(222, 68%, 59%)
CMYKcmyk(67.5%, 47%, 0%, 40.8%)
CIE-LABlab(35.25, 12.91, -42.39)
CIE-LCHlch(35.25, 44.31, 286.94°)
OKLaboklab(44.62% -0.0121 -0.1213)
OKLCHoklch(44.62% 0.122 264.3)
XYZxyz(9.7192, 8.6237, 30.4245)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315097 #977831
analogous
#318397 #315097 #453197
triadic
#315097 #973150 #509731
tetradic
#315097 #973183 #977831 #319745
square
#315097 #973183 #977831 #319745
split-complementary
#315097 #974531 #839731
monochromatic
#131F3B #223869 #315097 #436AC2 #718ED1

Accessibility & contrast

On white

7.71
#315097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#315097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315097
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315097#FFFFFF#000000##FFFFFF
##3150971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#194F96
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315097;
/* rgb */ color: rgb(49, 80, 151);
/* oklch */ color: oklch(44.6% 0.122 264.3);
Tailwind
colors: {
  custom: {
    50: '#7580b6',
    500: '#315097',
    950: '#000000',
  },
}
SCSS
$custom: #315097;
$custom-light: #7580b6;
$custom-dark: #000000;
JSON
{
  "hex": "#315097",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 221.765,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44623,
    "c": 0.12187,
    "h": 264.3
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#315097
secondary
#B9A16B
accent
#B04DDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #315097

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

Preview Lab → · Contrast checker → · Palette generator →

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