#313E7F#313E7F

#313E7F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.9% C 0.110 H 271.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#313E7F
RGBrgb(49, 62, 127)
HSLhsl(230, 44%, 35%)
HSVhsv(230, 61%, 50%)
CMYKcmyk(61.4%, 51.2%, 0%, 50.2%)
CIE-LABlab(28.46, 16.12, -38.54)
CIE-LCHlch(28.46, 41.77, 292.71°)
OKLaboklab(38.93% 0.0036 -0.1102)
OKLCHoklch(38.93% 0.11 271.9)
XYZxyz(6.8187, 5.6300, 20.8019)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E7F #7F7231
analogous
#31657F #313E7F #4B317F
triadic
#313E7F #7F313E #3E7F31
tetradic
#313E7F #7F3165 #7F7231 #317F4B
square
#313E7F #7F3165 #7F7231 #317F4B
split-complementary
#313E7F #7F4B31 #657F31
monochromatic
#0F1327 #202853 #313E7F #4254AB #6676C4

Accessibility & contrast

On white

9.88
#313E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E7F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E7F#FFFFFF#000000##FFFFFF
##313E7F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4781
Deuteranopia (green-blind)
#0E407E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313e7f;
/* rgb */ color: rgb(49, 62, 127);
/* oklch */ color: oklch(38.9% 0.110 271.9);
Tailwind
colors: {
  custom: {
    50: '#7173a4',
    500: '#313e7f',
    950: '#000000',
  },
}
SCSS
$custom: #313e7f;
$custom-light: #7173a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313e7f",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 127
  },
  "hsl": {
    "h": 230,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38933,
    "c": 0.11025,
    "h": 271.9
  },
  "luminance": 0.05631
}

Semantic roles & 50–950 ramp

primary
#313E7F
secondary
#AB9F60
accent
#BF54D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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