#313E72#313E72

#313E72 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.090 H 271.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#313E72
RGBrgb(49, 62, 114)
HSLhsl(228, 40%, 32%)
HSVhsv(228, 57%, 45%)
CMYKcmyk(57%, 45.6%, 0%, 55.3%)
CIE-LABlab(27.61, 11.40, -31.71)
CIE-LCHlch(27.61, 33.70, 289.78°)
OKLaboklab(38.01% 0.0016 -0.0901)
OKLCHoklch(38.01% 0.09 271)
XYZxyz(6.0255, 5.3127, 16.6243)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E72 #726531
analogous
#315F72 #313E72 #453172
triadic
#313E72 #72313E #3E7231
tetradic
#313E72 #72315F #726531 #317245
square
#313E72 #72315F #726531 #317245
split-complementary
#313E72 #724531 #5F7231
monochromatic
#0C0F1C #1F2747 #313E72 #43559D #6274BB

Accessibility & contrast

On white

10.18
#313E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E72
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E72#FFFFFF#000000##FFFFFF
##313E721.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284474
Deuteranopia (green-blind)
#203F71
Tritanopia (blue-blind)
#0F4952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313e72;
/* rgb */ color: rgb(49, 62, 114);
/* oklch */ color: oklch(38.0% 0.090 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e739b',
    500: '#313e72',
    950: '#000000',
  },
}
SCSS
$custom: #313e72;
$custom-light: #6e739b;
$custom-dark: #000000;
JSON
{
  "hex": "#313e72",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 114
  },
  "hsl": {
    "h": 228,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38009,
    "c": 0.09014,
    "h": 271
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#313E72
secondary
#A3955C
accent
#B858D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313E72

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

Preview Lab → · Contrast checker → · Palette generator →

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