#313A79#313A79

#313A79 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.6% C 0.107 H 274.0°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#313A79
RGBrgb(49, 58, 121)
HSLhsl(233, 42%, 33%)
HSVhsv(233, 60%, 47%)
CMYKcmyk(59.5%, 52.1%, 0%, 52.5%)
CIE-LABlab(26.90, 16.67, -37.27)
CIE-LCHlch(26.90, 40.83, 294.10°)
OKLaboklab(37.62% 0.0075 -0.1065)
OKLCHoklch(37.62% 0.107 274)
XYZxyz(6.2297, 5.0591, 18.7337)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A79 #797031
analogous
#315E79 #313A79 #4C3179
triadic
#313A79 #79313A #3A7931
tetradic
#313A79 #79315E #797031 #31794C
square
#313A79 #79315E #797031 #31794C
split-complementary
#313A79 #794C31 #5E7931
monochromatic
#0E1022 #1F254D #313A79 #434FA5 #6470C0

Accessibility & contrast

On white

10.44
#313A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A79
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A79#FFFFFF#000000##FFFFFF
##313A791.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437B
Deuteranopia (green-blind)
#0D3D78
Tritanopia (blue-blind)
#044853
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313a79;
/* rgb */ color: rgb(49, 58, 121);
/* oklch */ color: oklch(37.6% 0.107 274.0);
Tailwind
colors: {
  custom: {
    50: '#7070a0',
    500: '#313a79',
    950: '#000000',
  },
}
SCSS
$custom: #313a79;
$custom-light: #7070a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313a79",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 121
  },
  "hsl": {
    "h": 232.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.10677,
    "h": 274
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

primary
#313A79
secondary
#A89E5E
accent
#C356D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313A79

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

Preview Lab → · Contrast checker → · Palette generator →

#313A79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva