#313F76#313F76

#313F76 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.095 H 270.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#313F76
RGBrgb(49, 63, 118)
HSLhsl(228, 41%, 33%)
HSVhsv(228, 58%, 46%)
CMYKcmyk(58.5%, 46.6%, 0%, 53.7%)
CIE-LABlab(28.16, 12.16, -33.37)
CIE-LCHlch(28.16, 35.51, 290.03°)
OKLaboklab(38.51% 0.0011 -0.095)
OKLCHoklch(38.51% 0.095 270.7)
XYZxyz(6.3131, 5.5155, 17.8680)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F76 #766831
analogous
#316176 #313F76 #453176
triadic
#313F76 #76313F #3F7631
tetradic
#313F76 #763161 #766831 #317645
square
#313F76 #763161 #766831 #317645
split-complementary
#313F76 #764531 #617631
monochromatic
#0D1120 #1F284B #313F76 #4356A1 #6376BE

Accessibility & contrast

On white

9.98
#313F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F76
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F76#FFFFFF#000000##FFFFFF
##313F761.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274678
Deuteranopia (green-blind)
#1E4075
Tritanopia (blue-blind)
#084B54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313f76;
/* rgb */ color: rgb(49, 63, 118);
/* oklch */ color: oklch(38.5% 0.095 270.7);
Tailwind
colors: {
  custom: {
    50: '#6f739e',
    500: '#313f76',
    950: '#000000',
  },
}
SCSS
$custom: #313f76;
$custom-light: #6f739e;
$custom-dark: #000000;
JSON
{
  "hex": "#313f76",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 118
  },
  "hsl": {
    "h": 227.826,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.09499,
    "h": 270.7
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#313F76
secondary
#A6975D
accent
#B857D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313F76

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

Preview Lab → · Contrast checker → · Palette generator →

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