#313E7D#313E7D

#313E7D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.107 H 271.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#313E7D
RGBrgb(49, 62, 125)
HSLhsl(230, 44%, 34%)
HSVhsv(230, 61%, 49%)
CMYKcmyk(60.8%, 50.4%, 0%, 51%)
CIE-LABlab(28.32, 15.39, -37.50)
CIE-LCHlch(28.32, 40.54, 292.32°)
OKLaboklab(38.78% 0.0033 -0.1071)
OKLCHoklch(38.78% 0.107 271.8)
XYZxyz(6.6897, 5.5784, 20.1223)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E7D #7D7031
analogous
#31647D #313E7D #4A317D
triadic
#313E7D #7D313E #3E7D31
tetradic
#313E7D #7D3164 #7D7031 #317D4A
square
#313E7D #7D3164 #7D7031 #317D4A
split-complementary
#313E7D #7D4A31 #647D31
monochromatic
#0F1225 #202851 #313E7D #4254A9 #6676C3

Accessibility & contrast

On white

9.93
#313E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E7D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E7D#FFFFFF#000000##FFFFFF
##313E7D1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467F
Deuteranopia (green-blind)
#12407C
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313e7d;
/* rgb */ color: rgb(49, 62, 125);
/* oklch */ color: oklch(38.8% 0.107 271.8);
Tailwind
colors: {
  custom: {
    50: '#7073a3',
    500: '#313e7d',
    950: '#000000',
  },
}
SCSS
$custom: #313e7d;
$custom-light: #7073a3;
$custom-dark: #000000;
JSON
{
  "hex": "#313e7d",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 125
  },
  "hsl": {
    "h": 229.737,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.1072,
    "h": 271.8
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#313E7D
secondary
#AA9D60
accent
#BE54D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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