#313D76#313D76

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

Color values

HEX#313D76
RGBrgb(49, 61, 118)
HSLhsl(230, 41%, 33%)
HSVhsv(230, 58%, 46%)
CMYKcmyk(58.5%, 48.3%, 0%, 53.7%)
CIE-LABlab(27.57, 13.53, -34.31)
CIE-LCHlch(27.57, 36.88, 291.52°)
OKLaboklab(38.06% 0.0035 -0.0978)
OKLCHoklch(38.06% 0.098 272.1)
XYZxyz(6.2043, 5.2980, 17.8317)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D76 #766A31
analogous
#315F76 #313D76 #473176
triadic
#313D76 #76313D #3D7631
tetradic
#313D76 #76315F #766A31 #317647
square
#313D76 #76315F #766A31 #317647
split-complementary
#313D76 #764731 #5F7631
monochromatic
#0D1020 #1F274B #313D76 #4353A1 #6373BE

Accessibility & contrast

On white

10.20
#313D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D76
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D76#FFFFFF#000000##FFFFFF
##313D761.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234478
Deuteranopia (green-blind)
#1A3E75
Tritanopia (blue-blind)
#094A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313d76;
/* rgb */ color: rgb(49, 61, 118);
/* oklch */ color: oklch(38.1% 0.098 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f729e',
    500: '#313d76',
    950: '#000000',
  },
}
SCSS
$custom: #313d76;
$custom-light: #6f729e;
$custom-dark: #000000;
JSON
{
  "hex": "#313d76",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 118
  },
  "hsl": {
    "h": 229.565,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.09783,
    "h": 272.1
  },
  "luminance": 0.05298
}

Semantic roles & 50–950 ramp

primary
#313D76
secondary
#A6995D
accent
#BC57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313D76

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

Preview Lab → · Contrast checker → · Palette generator →

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