#313F72#313F72

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

Color values

HEX#313F72
RGBrgb(49, 63, 114)
HSLhsl(227, 40%, 32%)
HSVhsv(227, 57%, 45%)
CMYKcmyk(57%, 44.7%, 0%, 55.3%)
CIE-LABlab(27.91, 10.72, -31.23)
CIE-LCHlch(27.91, 33.02, 288.94°)
OKLaboklab(38.24% 0.0003 -0.0887)
OKLCHoklch(38.24% 0.089 270.2)
XYZxyz(6.0804, 5.4225, 16.6426)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F72 #726431
analogous
#316072 #313F72 #443172
triadic
#313F72 #72313F #3F7231
tetradic
#313F72 #723160 #726431 #317244
square
#313F72 #723160 #726431 #317244
split-complementary
#313F72 #724431 #607231
monochromatic
#0C101C #1F2747 #313F72 #43579D #6275BB

Accessibility & contrast

On white

10.07
#313F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F72
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F72#FFFFFF#000000##FFFFFF
##313F721.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294574
Deuteranopia (green-blind)
#223F71
Tritanopia (blue-blind)
#0F4A53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313f72;
/* rgb */ color: rgb(49, 63, 114);
/* oklch */ color: oklch(38.2% 0.089 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e739b',
    500: '#313f72',
    950: '#000000',
  },
}
SCSS
$custom: #313f72;
$custom-light: #6e739b;
$custom-dark: #000000;
JSON
{
  "hex": "#313f72",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 114
  },
  "hsl": {
    "h": 227.077,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38238,
    "c": 0.08873,
    "h": 270.2
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#313F72
secondary
#A3945C
accent
#B658D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313F72

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

Preview Lab → · Contrast checker → · Palette generator →

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