#313F71#313F71

#313F71 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.087 H 270.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313F71
RGBrgb(49, 63, 113)
HSLhsl(227, 40%, 32%)
HSVhsv(227, 57%, 44%)
CMYKcmyk(56.6%, 44.2%, 0%, 55.7%)
CIE-LABlab(27.84, 10.36, -30.70)
CIE-LCHlch(27.84, 32.40, 288.65°)
OKLaboklab(38.17% 0.0001 -0.0872)
OKLCHoklch(38.17% 0.087 270.1)
XYZxyz(6.0238, 5.3998, 16.3444)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F71 #716331
analogous
#315F71 #313F71 #433171
triadic
#313F71 #71313F #3F7131
tetradic
#313F71 #71315F #716331 #317143
square
#313F71 #71315F #716331 #317143
split-complementary
#313F71 #714331 #5F7131
monochromatic
#0C0F1C #1E2746 #313F71 #44579C #6275BB

Accessibility & contrast

On white

10.10
#313F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F71
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F71#FFFFFF#000000##FFFFFF
##313F711.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#233F70
Tritanopia (blue-blind)
#104A52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313f71;
/* rgb */ color: rgb(49, 63, 113);
/* oklch */ color: oklch(38.2% 0.087 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e739a',
    500: '#313f71',
    950: '#000000',
  },
}
SCSS
$custom: #313f71;
$custom-light: #6e739a;
$custom-dark: #000000;
JSON
{
  "hex": "#313f71",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 113
  },
  "hsl": {
    "h": 226.875,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38171,
    "c": 0.08716,
    "h": 270.1
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#313F71
secondary
#A2935C
accent
#B558CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #313F71

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

Preview Lab → · Contrast checker → · Palette generator →

#313F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva