#313E75#313E75

#313E75 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.095 H 271.3°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#313E75
RGBrgb(49, 62, 117)
HSLhsl(229, 41%, 33%)
HSVhsv(229, 58%, 46%)
CMYKcmyk(58.1%, 47%, 0%, 54.1%)
CIE-LABlab(27.80, 12.49, -33.31)
CIE-LCHlch(27.80, 35.57, 290.55°)
OKLaboklab(38.21% 0.0021 -0.0948)
OKLCHoklch(38.21% 0.095 271.3)
XYZxyz(6.1991, 5.3821, 17.5384)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E75 #756831
analogous
#316075 #313E75 #463175
triadic
#313E75 #75313E #3E7531
tetradic
#313E75 #753160 #756831 #317546
square
#313E75 #753160 #756831 #317546
split-complementary
#313E75 #754631 #607531
monochromatic
#0D101F #1F274A #313E75 #4355A0 #6374BE

Accessibility & contrast

On white

10.11
#313E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313E75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E75
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E75#FFFFFF#000000##FFFFFF
##313E751.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264577
Deuteranopia (green-blind)
#1D3F74
Tritanopia (blue-blind)
#0A4A53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313e75;
/* rgb */ color: rgb(49, 62, 117);
/* oklch */ color: oklch(38.2% 0.095 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f739d',
    500: '#313e75',
    950: '#000000',
  },
}
SCSS
$custom: #313e75;
$custom-light: #6f739d;
$custom-dark: #000000;
JSON
{
  "hex": "#313e75",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 117
  },
  "hsl": {
    "h": 228.529,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.09484,
    "h": 271.3
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

primary
#313E75
secondary
#A5975D
accent
#BA57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313E75

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

Preview Lab → · Contrast checker → · Palette generator →

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