#313B7D#313B7D

#313B7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.1% C 0.111 H 273.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#313B7D
RGBrgb(49, 59, 125)
HSLhsl(232, 44%, 34%)
HSVhsv(232, 61%, 49%)
CMYKcmyk(60.8%, 52.8%, 0%, 51%)
CIE-LABlab(27.47, 17.44, -38.88)
CIE-LCHlch(27.47, 42.61, 294.16°)
OKLaboklab(38.14% 0.0067 -0.1112)
OKLCHoklch(38.14% 0.111 273.5)
XYZxyz(6.5310, 5.2611, 20.0694)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B7D #7D7331
analogous
#31617D #313B7D #4D317D
triadic
#313B7D #7D313B #3B7D31
tetradic
#313B7D #7D3161 #7D7331 #317D4D
square
#313B7D #7D3161 #7D7331 #317D4D
split-complementary
#313B7D #7D4D31 #617D31
monochromatic
#0F1125 #202651 #313B7D #4250A9 #6672C3

Accessibility & contrast

On white

10.23
#313B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B7D
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B7D#FFFFFF#000000##FFFFFF
##313B7D1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#073E7C
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313b7d;
/* rgb */ color: rgb(49, 59, 125);
/* oklch */ color: oklch(38.1% 0.111 273.5);
Tailwind
colors: {
  custom: {
    50: '#7170a3',
    500: '#313b7d',
    950: '#000000',
  },
}
SCSS
$custom: #313b7d;
$custom-light: #7170a3;
$custom-dark: #000000;
JSON
{
  "hex": "#313b7d",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 125
  },
  "hsl": {
    "h": 232.105,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.11143,
    "h": 273.5
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#313B7D
secondary
#AAA060
accent
#C354D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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