#313E73#313E73

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

Color values

HEX#313E73
RGBrgb(49, 62, 115)
HSLhsl(228, 40%, 32%)
HSVhsv(228, 57%, 45%)
CMYKcmyk(57.4%, 46.1%, 0%, 54.9%)
CIE-LABlab(27.67, 11.76, -32.24)
CIE-LCHlch(27.67, 34.32, 290.04°)
OKLaboklab(38.08% 0.0018 -0.0917)
OKLCHoklch(38.08% 0.092 271.1)
XYZxyz(6.0827, 5.3356, 16.9257)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E73 #736631
analogous
#315F73 #313E73 #453173
triadic
#313E73 #73313E #3E7331
tetradic
#313E73 #73315F #736631 #317345
square
#313E73 #73315F #736631 #317345
split-complementary
#313E73 #734531 #5F7331
monochromatic
#0C101D #1F2748 #313E73 #43559E #6274BC

Accessibility & contrast

On white

10.16
#313E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E73
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E73#FFFFFF#000000##FFFFFF
##313E731.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274475
Deuteranopia (green-blind)
#1F3F72
Tritanopia (blue-blind)
#0E4A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313e73;
/* rgb */ color: rgb(49, 62, 115);
/* oklch */ color: oklch(38.1% 0.092 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f739b',
    500: '#313e73',
    950: '#000000',
  },
}
SCSS
$custom: #313e73;
$custom-light: #6f739b;
$custom-dark: #000000;
JSON
{
  "hex": "#313e73",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 115
  },
  "hsl": {
    "h": 228.182,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38078,
    "c": 0.09172,
    "h": 271.1
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313E73

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

Preview Lab → · Contrast checker → · Palette generator →

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