#313474#313474

#313474 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.108 H 277.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#313474
RGBrgb(49, 52, 116)
HSLhsl(237, 41%, 32%)
HSVhsv(237, 58%, 45%)
CMYKcmyk(57.8%, 55.2%, 0%, 54.5%)
CIE-LABlab(24.86, 18.98, -37.39)
CIE-LCHlch(24.86, 41.93, 296.92°)
OKLaboklab(35.97% 0.014 -0.1069)
OKLCHoklch(35.97% 0.108 277.5)
XYZxyz(5.6460, 4.3695, 17.0655)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313474 #747131
analogous
#315674 #313474 #4F3174
triadic
#313474 #743134 #347431
tetradic
#313474 #743156 #747131 #31744F
square
#313474 #743156 #747131 #31744F
split-complementary
#313474 #744F31 #567431
monochromatic
#0D0D1E #1F2149 #313474 #43479F #6367BD

Accessibility & contrast

On white

11.21
#313474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#313474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313474
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313474#FFFFFF#000000##FFFFFF
##3134741.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103E76
Deuteranopia (green-blind)
#033873
Tritanopia (blue-blind)
#0F434E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313474;
/* rgb */ color: rgb(49, 52, 116);
/* oklch */ color: oklch(36.0% 0.108 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f6b9c',
    500: '#313474',
    950: '#000000',
  },
}
SCSS
$custom: #313474;
$custom-light: #6f6b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313474",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 116
  },
  "hsl": {
    "h": 237.313,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.10785,
    "h": 277.5
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#313474
secondary
#A4A15C
accent
#CB57D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313474

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

Preview Lab → · Contrast checker → · Palette generator →

#313474 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva