#313097#313097

#313097 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.163 H 275.9°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#313097
RGBrgb(49, 48, 151)
HSLhsl(241, 52%, 39%)
HSVhsv(241, 68%, 59%)
CMYKcmyk(67.5%, 68.2%, 0%, 40.8%)
CIE-LABlab(26.74, 34.07, -56.20)
CIE-LCHlch(26.74, 65.72, 301.23°)
OKLaboklab(38.26% 0.0167 -0.1622)
OKLCHoklch(38.26% 0.163 275.9)
XYZxyz(7.9077, 5.0005, 29.8206)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313097 #969730
analogous
#306397 #313097 #653097
triadic
#313097 #973130 #309731
tetradic
#313097 #973063 #969730 #309765
square
#313097 #973063 #969730 #309765
split-complementary
#313097 #976530 #639730
monochromatic
#13123A #222169 #313097 #4341C3 #7170D2

Accessibility & contrast

On white

10.50
#313097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313097
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313097#FFFFFF#000000##FFFFFF
##3130971.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313097;
/* rgb */ color: rgb(49, 48, 151);
/* oklch */ color: oklch(38.3% 0.163 275.9);
Tailwind
colors: {
  custom: {
    50: '#7769b7',
    500: '#313097',
    950: '#000000',
  },
}
SCSS
$custom: #313097;
$custom-light: #7769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313097",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 240.583,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38259,
    "c": 0.16306,
    "h": 275.9
  },
  "luminance": 0.05001
}

Semantic roles & 50–950 ramp

primary
#313097
secondary
#B8B96A
accent
#DB4DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313097

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

Preview Lab → · Contrast checker → · Palette generator →

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