#313D72#313D72

#313D72 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.092 H 271.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#313D72
RGBrgb(49, 61, 114)
HSLhsl(229, 40%, 32%)
HSVhsv(229, 57%, 45%)
CMYKcmyk(57%, 46.5%, 0%, 55.3%)
CIE-LABlab(27.31, 12.09, -32.18)
CIE-LCHlch(27.31, 34.38, 290.59°)
OKLaboklab(37.78% 0.0028 -0.0915)
OKLCHoklch(37.78% 0.092 271.8)
XYZxyz(5.9716, 5.2049, 16.6063)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D72 #726631
analogous
#315E72 #313D72 #463172
triadic
#313D72 #72313D #3D7231
tetradic
#313D72 #72315E #726631 #317246
square
#313D72 #72315E #726631 #317246
split-complementary
#313D72 #724631 #5E7231
monochromatic
#0C0F1C #1F2647 #313D72 #43549D #6272BB

Accessibility & contrast

On white

10.29
#313D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D72
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D72#FFFFFF#000000##FFFFFF
##313D721.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264374
Deuteranopia (green-blind)
#1E3E71
Tritanopia (blue-blind)
#0F4952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313d72;
/* rgb */ color: rgb(49, 61, 114);
/* oklch */ color: oklch(37.8% 0.092 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f729b',
    500: '#313d72',
    950: '#000000',
  },
}
SCSS
$custom: #313d72;
$custom-light: #6f729b;
$custom-dark: #000000;
JSON
{
  "hex": "#313d72",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 114
  },
  "hsl": {
    "h": 228.923,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37783,
    "c": 0.09157,
    "h": 271.8
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#313D72
secondary
#A3965C
accent
#BA58D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313D72

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

Preview Lab → · Contrast checker → · Palette generator →

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