#313461#313461

#313461 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.6% C 0.078 H 278.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#313461
RGBrgb(49, 52, 97)
HSLhsl(236, 33%, 29%)
HSVhsv(236, 49%, 38%)
CMYKcmyk(49.5%, 46.4%, 0%, 62%)
CIE-LABlab(23.58, 12.30, -27.19)
CIE-LCHlch(23.58, 29.84, 294.33°)
OKLaboklab(34.59% 0.0117 -0.077)
OKLCHoklch(34.59% 0.078 278.6)
XYZxyz(4.6516, 3.9718, 11.8285)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313461 #615E31
analogous
#314C61 #313461 #463161
triadic
#313461 #613134 #346131
tetradic
#313461 #61314C #615E31 #316146
square
#313461 #61314C #615E31 #316146
split-complementary
#313461 #614631 #4C6131
monochromatic
#0A0B14 #1C1E38 #313461 #464A8A #5E63AE

Accessibility & contrast

On white

11.70
#313461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#313461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313461
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313461#FFFFFF#000000##FFFFFF
##3134611.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223A63
Deuteranopia (green-blind)
#1F3660
Tritanopia (blue-blind)
#203D45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313461;
/* rgb */ color: rgb(49, 52, 97);
/* oklch */ color: oklch(34.6% 0.078 278.6);
Tailwind
colors: {
  custom: {
    50: '#6c6b8e',
    500: '#313461',
    950: '#000000',
  },
}
SCSS
$custom: #313461;
$custom-light: #6c6b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#313461",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 97
  },
  "hsl": {
    "h": 236.25,
    "s": 32.877,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3459,
    "c": 0.07786,
    "h": 278.6
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#313461
secondary
#928F5C
accent
#C25FC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313461

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

Preview Lab → · Contrast checker → · Palette generator →

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