#313B82#313B82

#313B82 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.5% C 0.119 H 273.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313B82
RGBrgb(49, 59, 130)
HSLhsl(233, 45%, 35%)
HSVhsv(233, 62%, 51%)
CMYKcmyk(62.3%, 54.6%, 0%, 49%)
CIE-LABlab(27.82, 19.27, -41.43)
CIE-LCHlch(27.82, 45.69, 294.94°)
OKLaboklab(38.52% 0.0072 -0.1187)
OKLCHoklch(38.52% 0.119 273.4)
XYZxyz(6.8585, 5.3921, 21.7941)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B82 #827831
analogous
#316382 #313B82 #503182
triadic
#313B82 #82313B #3B8231
tetradic
#313B82 #823163 #827831 #318250
square
#313B82 #823163 #827831 #318250
split-complementary
#313B82 #825031 #638231
monochromatic
#0F1329 #202756 #313B82 #424FAE #6873C6

Accessibility & contrast

On white

10.10
#313B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B82
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B82#FFFFFF#000000##FFFFFF
##313B821.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104584
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313b82;
/* rgb */ color: rgb(49, 59, 130);
/* oklch */ color: oklch(38.5% 0.119 273.4);
Tailwind
colors: {
  custom: {
    50: '#7270a7',
    500: '#313b82',
    950: '#000000',
  },
}
SCSS
$custom: #313b82;
$custom-light: #7270a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313b82",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 130
  },
  "hsl": {
    "h": 232.593,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38521,
    "c": 0.11897,
    "h": 273.4
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#313B82
secondary
#ADA462
accent
#C553D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313B82

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

Preview Lab → · Contrast checker → · Palette generator →

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