#313D7A#313D7A

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

Color values

HEX#313D7A
RGBrgb(49, 61, 122)
HSLhsl(230, 43%, 34%)
HSVhsv(230, 60%, 48%)
CMYKcmyk(59.8%, 50%, 0%, 52.2%)
CIE-LABlab(27.83, 14.98, -36.41)
CIE-LCHlch(27.83, 39.37, 292.37°)
OKLaboklab(38.35% 0.0041 -0.1039)
OKLCHoklch(38.35% 0.104 272.3)
XYZxyz(6.4471, 5.3951, 19.1102)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D7A #7A6E31
analogous
#31617A #313D7A #49317A
triadic
#313D7A #7A313D #3D7A31
tetradic
#313D7A #7A3161 #7A6E31 #317A49
square
#313D7A #7A3161 #7A6E31 #317A49
split-complementary
#313D7A #7A4931 #617A31
monochromatic
#0E1123 #1F274E #313D7A #4353A6 #6474C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313D7A#FFFFFF#000000##FFFFFF
##313D7A1.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)
#1F457C
Deuteranopia (green-blind)
#143F79
Tritanopia (blue-blind)
#014B55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d7a;
/* rgb */ color: rgb(49, 61, 122);
/* oklch */ color: oklch(38.3% 0.104 272.3);
Tailwind
colors: {
  custom: {
    50: '#7072a1',
    500: '#313d7a',
    950: '#000000',
  },
}
SCSS
$custom: #313d7a;
$custom-light: #7072a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313d7a",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 122
  },
  "hsl": {
    "h": 230.137,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.10402,
    "h": 272.3
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#313D7A
secondary
#A89C5E
accent
#BE55D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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