#313677#313677

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

Color values

HEX#313677
RGBrgb(49, 54, 119)
HSLhsl(236, 42%, 33%)
HSVhsv(236, 59%, 47%)
CMYKcmyk(58.8%, 54.6%, 0%, 53.3%)
CIE-LABlab(25.63, 18.69, -38.05)
CIE-LCHlch(25.63, 42.39, 296.16°)
OKLaboklab(36.62% 0.0119 -0.1088)
OKLCHoklch(36.62% 0.109 276.3)
XYZxyz(5.9145, 4.6228, 18.0298)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313677 #777231
analogous
#315977 #313677 #4F3177
triadic
#313677 #773136 #367731
tetradic
#313677 #773159 #777231 #31774F
square
#313677 #773159 #777231 #31774F
split-complementary
#313677 #774F31 #597731
monochromatic
#0D0F20 #1F224C #313677 #434AA2 #636ABF

Accessibility & contrast

On white

10.91
#313677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313677
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313677#FFFFFF#000000##FFFFFF
##3136771.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114079
Deuteranopia (green-blind)
#033A76
Tritanopia (blue-blind)
#094551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313677;
/* rgb */ color: rgb(49, 54, 119);
/* oklch */ color: oklch(36.6% 0.109 276.3);
Tailwind
colors: {
  custom: {
    50: '#706c9f',
    500: '#313677',
    950: '#000000',
  },
}
SCSS
$custom: #313677;
$custom-light: #706c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313677",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 119
  },
  "hsl": {
    "h": 235.714,
    "s": 41.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36619,
    "c": 0.10949,
    "h": 276.3
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#313677
secondary
#A6A15D
accent
#C956D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313677

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

Preview Lab → · Contrast checker → · Palette generator →

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