#313774#313774

#313774 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.6% C 0.103 H 275.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#313774
RGBrgb(49, 55, 116)
HSLhsl(235, 41%, 32%)
HSVhsv(235, 58%, 45%)
CMYKcmyk(57.8%, 52.6%, 0%, 54.5%)
CIE-LABlab(25.70, 16.92, -36.03)
CIE-LCHlch(25.70, 39.81, 295.16°)
OKLaboklab(36.6% 0.0105 -0.1029)
OKLCHoklch(36.6% 0.103 275.8)
XYZxyz(5.7842, 4.6459, 17.1116)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313774 #746E31
analogous
#315974 #313774 #4D3174
triadic
#313774 #743137 #377431
tetradic
#313774 #743159 #746E31 #31744D
square
#313774 #743159 #746E31 #31744D
split-complementary
#313774 #744D31 #597431
monochromatic
#0D0E1E #1F2349 #313774 #434B9F #636BBD

Accessibility & contrast

On white

10.89
#313774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313774
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313774#FFFFFF#000000##FFFFFF
##3137741.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184076
Deuteranopia (green-blind)
#0E3A73
Tritanopia (blue-blind)
#0E4550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313774;
/* rgb */ color: rgb(49, 55, 116);
/* oklch */ color: oklch(36.6% 0.103 275.8);
Tailwind
colors: {
  custom: {
    50: '#6f6d9c',
    500: '#313774',
    950: '#000000',
  },
}
SCSS
$custom: #313774;
$custom-light: #6f6d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313774",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 116
  },
  "hsl": {
    "h": 234.627,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.10343,
    "h": 275.8
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#313774
secondary
#A49E5C
accent
#C657D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313774

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

Preview Lab → · Contrast checker → · Palette generator →

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