#313A82#313A82

#313A82 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.120 H 273.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#313A82
RGBrgb(49, 58, 130)
HSLhsl(233, 45%, 35%)
HSVhsv(233, 62%, 51%)
CMYKcmyk(62.3%, 55.4%, 0%, 49%)
CIE-LABlab(27.55, 19.95, -41.88)
CIE-LCHlch(27.55, 46.39, 295.47°)
OKLaboklab(38.31% 0.0082 -0.1201)
OKLCHoklch(38.31% 0.12 273.9)
XYZxyz(6.8076, 5.2902, 21.7771)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A82 #827931
analogous
#316382 #313A82 #503182
triadic
#313A82 #82313A #3A8231
tetradic
#313A82 #823163 #827931 #318250
square
#313A82 #823163 #827931 #318250
split-complementary
#313A82 #825031 #638231
monochromatic
#0F1229 #202656 #313A82 #424EAE #6872C6

Accessibility & contrast

On white

10.20
#313A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A82
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A82#FFFFFF#000000##FFFFFF
##313A821.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4585
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313a82;
/* rgb */ color: rgb(49, 58, 130);
/* oklch */ color: oklch(38.3% 0.120 273.9);
Tailwind
colors: {
  custom: {
    50: '#7270a7',
    500: '#313a82',
    950: '#000000',
  },
}
SCSS
$custom: #313a82;
$custom-light: #7270a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313a82",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 233.333,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.12036,
    "h": 273.9
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#313A82
secondary
#ADA562
accent
#C653D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313A82

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

Preview Lab → · Contrast checker → · Palette generator →

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