#313B74#313B74

#313B74 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.098 H 273.3°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#313B74
RGBrgb(49, 59, 116)
HSLhsl(231, 41%, 32%)
HSVhsv(231, 58%, 45%)
CMYKcmyk(57.8%, 49.1%, 0%, 54.5%)
CIE-LABlab(26.85, 14.18, -34.18)
CIE-LCHlch(26.85, 37.01, 292.52°)
OKLaboklab(37.48% 0.0056 -0.0974)
OKLCHoklch(37.48% 0.098 273.3)
XYZxyz(5.9819, 5.0414, 17.1775)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B74 #746A31
analogous
#315C74 #313B74 #493174
triadic
#313B74 #74313B #3B7431
tetradic
#313B74 #74315C #746A31 #317449
square
#313B74 #74315C #746A31 #317449
split-complementary
#313B74 #744931 #5C7431
monochromatic
#0D0F1E #1F2549 #313B74 #43519F #6370BD

Accessibility & contrast

On white

10.46
#313B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B74
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B74#FFFFFF#000000##FFFFFF
##313B741.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214276
Deuteranopia (green-blind)
#183D73
Tritanopia (blue-blind)
#0D4852
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313b74;
/* rgb */ color: rgb(49, 59, 116);
/* oklch */ color: oklch(37.5% 0.098 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f709c',
    500: '#313b74',
    950: '#000000',
  },
}
SCSS
$custom: #313b74;
$custom-light: #6f709c;
$custom-dark: #000000;
JSON
{
  "hex": "#313b74",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 116
  },
  "hsl": {
    "h": 231.045,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37475,
    "c": 0.09759,
    "h": 273.3
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#313B74
secondary
#A49A5C
accent
#BE57D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313B74

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

Preview Lab → · Contrast checker → · Palette generator →

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