#313A7E#313A7E

#313A7E is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.0% C 0.114 H 274.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#313A7E
RGBrgb(49, 58, 126)
HSLhsl(233, 44%, 34%)
HSVhsv(233, 61%, 49%)
CMYKcmyk(61.1%, 54%, 0%, 50.6%)
CIE-LABlab(27.26, 18.49, -39.85)
CIE-LCHlch(27.26, 43.93, 294.89°)
OKLaboklab(38% 0.0079 -0.1141)
OKLCHoklch(38% 0.114 274)
XYZxyz(6.5443, 5.1849, 20.3905)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A7E #7E7531
analogous
#31617E #313A7E #4F317E
triadic
#313A7E #7E313A #3A7E31
tetradic
#313A7E #7E3161 #7E7531 #317E4F
square
#313A7E #7E3161 #7E7531 #317E4F
split-complementary
#313A7E #7E4F31 #617E31
monochromatic
#0F1126 #202652 #313A7E #424EAA #6671C3

Accessibility & contrast

On white

10.31
#313A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A7E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A7E#FFFFFF#000000##FFFFFF
##313A7E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134480
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313a7e;
/* rgb */ color: rgb(49, 58, 126);
/* oklch */ color: oklch(38.0% 0.114 274.0);
Tailwind
colors: {
  custom: {
    50: '#7170a4',
    500: '#313a7e',
    950: '#000000',
  },
}
SCSS
$custom: #313a7e;
$custom-light: #7170a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313a7e",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 232.987,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.11437,
    "h": 274
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#313A7E
secondary
#ABA260
accent
#C554D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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