#313F73#313F73

#313F73 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.090 H 270.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#313F73
RGBrgb(49, 63, 115)
HSLhsl(227, 40%, 32%)
HSVhsv(227, 57%, 45%)
CMYKcmyk(57.4%, 45.2%, 0%, 54.9%)
CIE-LABlab(27.97, 11.08, -31.77)
CIE-LCHlch(27.97, 33.65, 289.23°)
OKLaboklab(38.31% 0.0005 -0.0903)
OKLCHoklch(38.31% 0.09 270.3)
XYZxyz(6.1376, 5.4453, 16.9440)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F73 #736531
analogous
#316073 #313F73 #443173
triadic
#313F73 #73313F #3F7331
tetradic
#313F73 #733160 #736531 #317344
square
#313F73 #733160 #736531 #317344
split-complementary
#313F73 #734431 #607331
monochromatic
#0C101D #1F2748 #313F73 #43579E #6275BC

Accessibility & contrast

On white

10.05
#313F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F73
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F73#FFFFFF#000000##FFFFFF
##313F731.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294575
Deuteranopia (green-blind)
#213F72
Tritanopia (blue-blind)
#0D4A53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313f73;
/* rgb */ color: rgb(49, 63, 115);
/* oklch */ color: oklch(38.3% 0.090 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f739b',
    500: '#313f73',
    950: '#000000',
  },
}
SCSS
$custom: #313f73;
$custom-light: #6f739b;
$custom-dark: #000000;
JSON
{
  "hex": "#313f73",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 115
  },
  "hsl": {
    "h": 227.273,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38305,
    "c": 0.0903,
    "h": 270.3
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#313F73
secondary
#A4955C
accent
#B758D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313F73

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

Preview Lab → · Contrast checker → · Palette generator →

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