#313561#313561

#313561 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.8% C 0.076 H 277.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#313561
RGBrgb(49, 53, 97)
HSLhsl(235, 33%, 29%)
HSVhsv(235, 49%, 38%)
CMYKcmyk(49.5%, 45.4%, 0%, 62%)
CIE-LABlab(23.88, 11.60, -26.72)
CIE-LCHlch(23.88, 29.13, 293.47°)
OKLaboklab(34.82% 0.0103 -0.0756)
OKLCHoklch(34.82% 0.076 277.7)
XYZxyz(4.6967, 4.0620, 11.8435)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313561 #615D31
analogous
#314D61 #313561 #453161
triadic
#313561 #613135 #356131
tetradic
#313561 #61314D #615D31 #316145
square
#313561 #61314D #615D31 #316145
split-complementary
#313561 #614531 #4D6131
monochromatic
#0A0B14 #1C1F38 #313561 #464B8A #5E65AE

Accessibility & contrast

On white

11.59
#313561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313561
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313561#FFFFFF#000000##FFFFFF
##3135611.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243B63
Deuteranopia (green-blind)
#203760
Tritanopia (blue-blind)
#203E46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313561;
/* rgb */ color: rgb(49, 53, 97);
/* oklch */ color: oklch(34.8% 0.076 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c6c8e',
    500: '#313561',
    950: '#000000',
  },
}
SCSS
$custom: #313561;
$custom-light: #6c6c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#313561",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 97
  },
  "hsl": {
    "h": 235,
    "s": 32.877,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34816,
    "c": 0.07629,
    "h": 277.7
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#313561
secondary
#928E5C
accent
#C05FC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313561

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

Preview Lab → · Contrast checker → · Palette generator →

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