#313C82#313C82

#313C82 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.7% C 0.118 H 273.0°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#313C82
RGBrgb(49, 60, 130)
HSLhsl(232, 45%, 35%)
HSVhsv(232, 62%, 51%)
CMYKcmyk(62.3%, 53.8%, 0%, 49%)
CIE-LABlab(28.10, 18.59, -40.98)
CIE-LCHlch(28.10, 45.00, 294.39°)
OKLaboklab(38.73% 0.0061 -0.1174)
OKLCHoklch(38.73% 0.118 273)
XYZxyz(6.9104, 5.4958, 21.8114)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C82 #827731
analogous
#316482 #313C82 #4F3182
triadic
#313C82 #82313C #3C8231
tetradic
#313C82 #823164 #827731 #31824F
square
#313C82 #823164 #827731 #31824F
split-complementary
#313C82 #824F31 #648231
monochromatic
#0F1329 #202756 #313C82 #4251AE #6874C6

Accessibility & contrast

On white

10.00
#313C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C82
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C82#FFFFFF#000000##FFFFFF
##313C821.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134684
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313c82;
/* rgb */ color: rgb(49, 60, 130);
/* oklch */ color: oklch(38.7% 0.118 273.0);
Tailwind
colors: {
  custom: {
    50: '#7171a7',
    500: '#313c82',
    950: '#000000',
  },
}
SCSS
$custom: #313c82;
$custom-light: #7171a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313c82",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 130
  },
  "hsl": {
    "h": 231.852,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.11757,
    "h": 273
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#313C82
secondary
#ADA362
accent
#C353D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313C82

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

Preview Lab → · Contrast checker → · Palette generator →

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