#313E7B#313E7B

#313E7B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.104 H 271.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#313E7B
RGBrgb(49, 62, 123)
HSLhsl(229, 43%, 34%)
HSVhsv(229, 60%, 48%)
CMYKcmyk(60.2%, 49.6%, 0%, 51.8%)
CIE-LABlab(28.19, 14.66, -36.46)
CIE-LCHlch(28.19, 39.30, 291.91°)
OKLaboklab(38.64% 0.0031 -0.1041)
OKLCHoklch(38.64% 0.104 271.7)
XYZxyz(6.5632, 5.5278, 19.4562)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E7B #7B6E31
analogous
#31637B #313E7B #49317B
triadic
#313E7B #7B313E #3E7B31
tetradic
#313E7B #7B3163 #7B6E31 #317B49
square
#313E7B #7B3163 #7B6E31 #317B49
split-complementary
#313E7B #7B4931 #637B31
monochromatic
#0E1223 #20284F #313E7B #4254A7 #6575C2

Accessibility & contrast

On white

9.97
#313E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E7B
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E7B#FFFFFF#000000##FFFFFF
##313E7B1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#153F7A
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313e7b;
/* rgb */ color: rgb(49, 62, 123);
/* oklch */ color: oklch(38.6% 0.104 271.7);
Tailwind
colors: {
  custom: {
    50: '#7073a1',
    500: '#313e7b',
    950: '#000000',
  },
}
SCSS
$custom: #313e7b;
$custom-light: #7073a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313e7b",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 123
  },
  "hsl": {
    "h": 229.459,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.10413,
    "h": 271.7
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#313E7B
secondary
#A99C5F
accent
#BD55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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