#313E7A#313E7A

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

Color values

HEX#313E7A
RGBrgb(49, 62, 122)
HSLhsl(229, 43%, 34%)
HSVhsv(229, 60%, 48%)
CMYKcmyk(59.8%, 49.2%, 0%, 52.2%)
CIE-LABlab(28.12, 14.30, -35.94)
CIE-LCHlch(28.12, 38.68, 291.69°)
OKLaboklab(38.57% 0.0029 -0.1026)
OKLCHoklch(38.57% 0.103 271.6)
XYZxyz(6.5009, 5.5029, 19.1282)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E7A #7A6D31
analogous
#31627A #313E7A #48317A
triadic
#313E7A #7A313E #3E7A31
tetradic
#313E7A #7A3162 #7A6D31 #317A48
square
#313E7A #7A3162 #7A6D31 #317A48
split-complementary
#313E7A #7A4831 #627A31
monochromatic
#0E1223 #1F284E #313E7A #4354A6 #6475C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313E7A#FFFFFF#000000##FFFFFF
##313E7A1.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)
#21467C
Deuteranopia (green-blind)
#173F79
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313e7a;
/* rgb */ color: rgb(49, 62, 122);
/* oklch */ color: oklch(38.6% 0.103 271.6);
Tailwind
colors: {
  custom: {
    50: '#7073a1',
    500: '#313e7a',
    950: '#000000',
  },
}
SCSS
$custom: #313e7a;
$custom-light: #7073a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313e7a",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 122
  },
  "hsl": {
    "h": 229.315,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.1026,
    "h": 271.6
  },
  "luminance": 0.05503
}

Semantic roles & 50–950 ramp

primary
#313E7A
secondary
#A89B5E
accent
#BC55D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #313E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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