#313F7D#313F7D

#313F7D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.106 H 271.2°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#313F7D
RGBrgb(49, 63, 125)
HSLhsl(229, 44%, 34%)
HSVhsv(229, 61%, 49%)
CMYKcmyk(60.8%, 49.6%, 0%, 51%)
CIE-LABlab(28.61, 14.71, -37.04)
CIE-LCHlch(28.61, 39.85, 291.66°)
OKLaboklab(39.01% 0.0022 -0.1058)
OKLCHoklch(39.01% 0.106 271.2)
XYZxyz(6.7446, 5.6881, 20.1406)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F7D #7D6F31
analogous
#31657D #313F7D #49317D
triadic
#313F7D #7D313F #3F7D31
tetradic
#313F7D #7D3165 #7D6F31 #317D49
square
#313F7D #7D3165 #7D6F31 #317D49
split-complementary
#313F7D #7D4931 #657D31
monochromatic
#0F1325 #202951 #313F7D #4255A9 #6677C3

Accessibility & contrast

On white

9.82
#313F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F7D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F7D#FFFFFF#000000##FFFFFF
##313F7D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#15407C
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313f7d;
/* rgb */ color: rgb(49, 63, 125);
/* oklch */ color: oklch(39.0% 0.106 271.2);
Tailwind
colors: {
  custom: {
    50: '#7073a3',
    500: '#313f7d',
    950: '#000000',
  },
}
SCSS
$custom: #313f7d;
$custom-light: #7073a3;
$custom-dark: #000000;
JSON
{
  "hex": "#313f7d",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 228.947,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39005,
    "c": 0.10579,
    "h": 271.2
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#313F7D
secondary
#AA9C60
accent
#BC54D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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