#313D7D#313D7D

#313D7D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.109 H 272.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#313D7D
RGBrgb(49, 61, 125)
HSLhsl(231, 44%, 34%)
HSVhsv(231, 61%, 49%)
CMYKcmyk(60.8%, 51.2%, 0%, 51%)
CIE-LABlab(28.04, 16.08, -37.96)
CIE-LCHlch(28.04, 41.23, 292.95°)
OKLaboklab(38.57% 0.0045 -0.1085)
OKLCHoklch(38.57% 0.109 272.4)
XYZxyz(6.6358, 5.4706, 20.1043)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D7D #7D7131
analogous
#31637D #313D7D #4B317D
triadic
#313D7D #7D313D #3D7D31
tetradic
#313D7D #7D3163 #7D7131 #317D4B
square
#313D7D #7D3163 #7D7131 #317D4B
split-complementary
#313D7D #7D4B31 #637D31
monochromatic
#0F1225 #202851 #313D7D #4252A9 #6674C3

Accessibility & contrast

On white

10.03
#313D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D7D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D7D#FFFFFF#000000##FFFFFF
##313D7D1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#0F3F7C
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d7d;
/* rgb */ color: rgb(49, 61, 125);
/* oklch */ color: oklch(38.6% 0.109 272.4);
Tailwind
colors: {
  custom: {
    50: '#7072a3',
    500: '#313d7d',
    950: '#000000',
  },
}
SCSS
$custom: #313d7d;
$custom-light: #7072a3;
$custom-dark: #000000;
JSON
{
  "hex": "#313d7d",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 125
  },
  "hsl": {
    "h": 230.526,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.10861,
    "h": 272.4
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#313D7D
secondary
#AA9E60
accent
#BF54D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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